diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-30 22:16:09 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-12-01 11:38:26 +0100 |
commit | 921986b580d32ac0195d4ba348c408d952e7e20c (patch) | |
tree | cb901cd2ce0d7f68d6f7155921f0fcfd99dc09b1 /src/amd/vulkan/radv_pipeline.c | |
parent | 4e7f6437b5359fe41a48fbba510f46ac69db8653 (diff) |
radv: do not dump meta shaders with RADV_DEBUG=shaders
It's really annoying and this pollutes the output especially
when a bunch of non-meta shaders are compiled.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index faffca83308..fcbb5804f5e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1867,10 +1867,7 @@ void radv_create_shaders(struct radv_pipeline *pipeline, radv_link_shaders(pipeline, nir); for (int i = 0; i < MESA_SHADER_STAGES; ++i) { - if (!(device->instance->debug_flags & RADV_DEBUG_DUMP_SHADERS)) - continue; - - if (modules[i]) + if (modules[i] && radv_can_dump_shader(device, modules[i])) nir_print_shader(nir[i], stderr); } |