mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
radv: Also allow filtering SPIR-V dump per stage.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32079>
This commit is contained in:
parent
e6eaf7b950
commit
14ea24ab6f
1 changed files with 6 additions and 3 deletions
|
|
@ -357,9 +357,12 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
|
|||
uint32_t *spirv = (uint32_t *)stage->spirv.data;
|
||||
assert(stage->spirv.size % 4 == 0);
|
||||
|
||||
bool dump_meta = instance->debug_flags & RADV_DEBUG_DUMP_META_SHADERS;
|
||||
if ((instance->debug_flags & RADV_DEBUG_DUMP_SPIRV) && (!is_internal || dump_meta))
|
||||
spirv_print_asm(stderr, (const uint32_t *)stage->spirv.data, stage->spirv.size / 4);
|
||||
if (instance->debug_flags & RADV_DEBUG_DUMP_SPIRV) {
|
||||
const uint64_t dump_flags =
|
||||
is_internal ? RADV_DEBUG_DUMP_META_SHADERS : radv_dump_flag_for_stage(stage->stage);
|
||||
if (instance->debug_flags & dump_flags)
|
||||
spirv_print_asm(stderr, (const uint32_t *)stage->spirv.data, stage->spirv.size / 4);
|
||||
}
|
||||
|
||||
uint32_t num_spec_entries = 0;
|
||||
struct nir_spirv_specialization *spec_entries = vk_spec_info_to_nir_spirv(stage->spec_info, &num_spec_entries);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue