mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radeonsi: fix a typo in si_shader_update_spi_shader_formats
The failure is reproducible with:
AMD_DEBUG=mono piglit/bin/fbo-drawbuffers-none use_frag_out -auto -fbo
Fixes: 88986dcc9c - radeonsi: account for outputs_written when updating spi_shader_col_format
This commit is contained in:
parent
645de2b433
commit
15774f7ac9
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ void si_shader_update_spi_shader_formats(struct si_shader *shader, nir_shader *n
|
|||
for (i = 0; i < num_targets; i++) {
|
||||
unsigned spi_format = (spi_shader_col_format >> (i * 4)) & 0xf;
|
||||
|
||||
if (spi_format && (colors_written & 1u << num_mrts)) {
|
||||
if (spi_format && (colors_written & 1u << i)) {
|
||||
value |= spi_format << (num_mrts * 4);
|
||||
num_mrts++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue