summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-05-08 20:13:17 -0400
committerMarek Olšák <[email protected]>2019-05-16 13:15:36 -0400
commit9d1485554ca3dc112412946dfe2ee5272a619a40 (patch)
tree1e5c6481c5cc68445b922237fdb62c5d4908e919
parent894e017c9c88a678c8cacd4b51658459c941bc0a (diff)
ac: match radeonsi code in ac_shader_binary_read_config
-rw-r--r--src/amd/common/ac_binary.c6
1 files changed, 3 insertions, 3 deletions
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
@@ -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;