D | spirv_to_nir.c | 71 if (b->options->debug.func) { in vtn_log() 72 b->options->debug.func(b->options->debug.private_data, in vtn_log() 122 ralloc_asprintf_append(&msg, "\n %zu bytes into the SPIR-V binary", in vtn_log_err() 123 b->spirv_offset); in vtn_log_err() 125 if (b->file) { in vtn_log_err() 127 "\n in SPIR-V source file %s, line %d, col %d", in vtn_log_err() 128 b->file, b->line, b->col); in vtn_log_err() 131 vtn_log(b, level, b->spirv_offset, msg); in vtn_log_err() 142 int len = snprintf(filename, sizeof(filename), "%s/%s-%d.spirv", in vtn_dump_shader() 151 fwrite(b->spirv, sizeof(*b->spirv), b->spirv_word_count, f); in vtn_dump_shader() [all …]
|