mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
HACK: spirv: Add a MESA_SPIRV_DUMP_PATH environment variable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
145f43a9a1
commit
4c81f87670
1 changed files with 4 additions and 0 deletions
|
|
@ -6911,6 +6911,10 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const char *dump_path = getenv("MESA_SPIRV_DUMP_PATH");
|
||||
if (dump_path)
|
||||
vtn_dump_shader(b, dump_path, "spirv");
|
||||
|
||||
b->shader = nir_shader_create(b, stage, nir_options, NULL);
|
||||
b->shader->info.subgroup_size = options->subgroup_size;
|
||||
b->shader->info.float_controls_execution_mode = options->float_controls_execution_mode;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue