From: Marek Olšák Date: Thu, 9 May 2019 00:13:17 +0000 (-0400) Subject: ac: match radeonsi code in ac_shader_binary_read_config X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d1485554ca3dc112412946dfe2ee5272a619a40;p=mesa.git ac: match radeonsi code in ac_shader_binary_read_config --- 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;