[1/2] ac: match radeonsi code in ac_shader_binary_read_config

Submitted by Marek Olšák on May 10, 2019, 5:20 a.m.

Details

Message ID 20190510052043.30686-1-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Marek Olšák May 10, 2019, 5:20 a.m.
From: Marek Olšák <marek.olsak@amd.com>

---
 src/amd/common/ac_binary.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/amd/common/ac_binary.c b/src/amd/common/ac_binary.c
index fabeb15a204..8f4755ebe16 100644
--- a/src/amd/common/ac_binary.c
+++ b/src/amd/common/ac_binary.c
@@ -281,25 +281,25 @@  void ac_shader_binary_read_config(struct ac_shader_binary *binary,
 				static bool printed;
 
 				if (!printed) {
 					fprintf(stderr, "Warning: LLVM emitted unknown "
 						"config register: 0x%x\n", reg);
 					printed = true;
 				}
 			}
 			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;
 	}
 }
 
 void ac_shader_binary_clean(struct ac_shader_binary *b)
 {
 	if (!b)
 		return;