From: Marek Olšák Date: Tue, 28 Mar 2017 14:18:45 +0000 (+0200) Subject: radeonsi/gfx9: fix 1D array fetches with derivs, bias, or Z compare value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3cb67dc6b3a6a6041d5dd5aa9a3b292e320a80d;p=mesa.git radeonsi/gfx9: fix 1D array fetches with derivs, bias, or Z compare value Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 2e34b76929e..49c50b719bc 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -4573,7 +4573,7 @@ static void tex_fetch_args( address[count++] = filler; } else if (target == TGSI_TEXTURE_1D_ARRAY || target == TGSI_TEXTURE_SHADOW1D_ARRAY) { - address[count] = coords[count - 1]; + address[count] = address[count - 1]; address[count - 1] = filler; count++; }