From e3cb67dc6b3a6a6041d5dd5aa9a3b292e320a80d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 28 Mar 2017 16:18:45 +0200 Subject: radeonsi/gfx9: fix 1D array fetches with derivs, bias, or Z compare value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++; } -- cgit v1.2.3