From: Samuel Pitoiset Date: Fri, 11 May 2018 14:36:52 +0000 (+0200) Subject: radv: remove useless check in radv_create_shaders() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ece398277cf1de5ac4debfd9855909fd1bafb239;p=mesa.git 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 --- 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); }