radv: remove useless check in radv_create_shaders()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 11 May 2018 14:36:52 +0000 (16:36 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 14 May 2018 10:38:01 +0000 (12:38 +0200)
radv_can_dump_shader() already handles if module is NULL.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/vulkan/radv_pipeline.c

index e6ac0721dce7f8abf1bfafc25720b72f3309bdb4..3d242e05bfd1a29f6f14ccede4b62d5cde484c8e 100644 (file)
@@ -1984,7 +1984,7 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
                radv_link_shaders(pipeline, nir);
 
        for (int i = 0; i < MESA_SHADER_STAGES; ++i) {
-               if (modules[i] && radv_can_dump_shader(device, modules[i], false))
+               if (radv_can_dump_shader(device, modules[i], false))
                        nir_print_shader(nir[i], stderr);
        }