radeonsi/gfx9: fix 1D array fetches with derivs, bias, or Z compare value
authorMarek Olšák <marek.olsak@amd.com>
Tue, 28 Mar 2017 14:18:45 +0000 (16:18 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 31 Mar 2017 19:41:57 +0000 (21:41 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 2e34b76929ee822445a502297e42e1462e2873f4..49c50b719bcada578668bd5a2967e37b16814c55 100644 (file)
@@ -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++;
                }