radeonsi: move spi_ps_input_addr override outside of the loop
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Aug 2016 11:30:32 +0000 (13:30 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 Aug 2016 10:51:32 +0000 (12:51 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 455f6044aeb5c8e89e36015894b1ea12090d3296..64c367eb367f29a1c09cb37c73b0637163162d98 100644 (file)
@@ -5990,10 +5990,10 @@ void si_shader_binary_read_config(struct radeon_shader_binary *binary,
                        }
                        break;
                }
-
-               if (!conf->spi_ps_input_addr)
-                       conf->spi_ps_input_addr = conf->spi_ps_input_ena;
        }
+
+       if (!conf->spi_ps_input_addr)
+               conf->spi_ps_input_addr = conf->spi_ps_input_ena;
 }
 
 void si_shader_apply_scratch_relocs(struct si_context *sctx,