From ece398277cf1de5ac4debfd9855909fd1bafb239 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 11 May 2018 16:36:52 +0200 Subject: [PATCH] radv: remove useless check in radv_create_shaders() radv_can_dump_shader() already handles if module is NULL. Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/amd/vulkan/radv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index e6ac0721dce..3d242e05bfd 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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); } -- 2.30.2