ac: match radeonsi code in ac_shader_binary_read_config
authorMarek Olšák <marek.olsak@amd.com>
Thu, 9 May 2019 00:13:17 +0000 (20:13 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 16 May 2019 17:15:36 +0000 (13:15 -0400)
src/amd/common/ac_binary.c

index fabeb15a2048d26c3e98c6137a8b0c7484c4b58b..8f4755ebe16c4510cf1fa77f222e1bcf31c755f7 100644 (file)
@@ -288,11 +288,11 @@ void ac_shader_binary_read_config(struct ac_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;
+
        if (really_needs_scratch) {
                /* sgprs spills aren't spilling */
                conf->scratch_bytes_per_wave = G_00B860_WAVESIZE(wavesize) * 256 * 4;