aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-07 03:20:34 +0200
committerMarek Olšák <[email protected]>2013-08-17 01:48:25 +0200
commit89ca4a00f51f46d5b6ef739aa6aa1bcd6215ed4e (patch)
tree8c65acda3625a14aaa3986d1f369efeebd40cd97 /src/gallium/drivers
parent5550554f1e6087a89a31b418003dde893e5ea4b3 (diff)
radeonsi: remove useless code from tex_fetch_args
The array slice has already been added to "address". Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 3e62858c08d..f1c7c6bbf9e 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -994,24 +994,6 @@ static void tex_fetch_args(
if (num_coords > 2)
address[count++] = coords[2];
- /* Pack array slice */
- switch (target) {
- case TGSI_TEXTURE_1D_ARRAY:
- address[count++] = coords[1];
- }
- switch (target) {
- case TGSI_TEXTURE_2D_ARRAY:
- case TGSI_TEXTURE_2D_ARRAY_MSAA:
- case TGSI_TEXTURE_SHADOW2D_ARRAY:
- address[count++] = coords[2];
- }
- switch (target) {
- case TGSI_TEXTURE_CUBE_ARRAY:
- case TGSI_TEXTURE_SHADOW1D_ARRAY:
- case TGSI_TEXTURE_SHADOWCUBE_ARRAY:
- address[count++] = coords[3];
- }
-
/* Pack LOD */
if (opcode == TGSI_OPCODE_TXL || opcode == TGSI_OPCODE_TXF)
address[count++] = coords[3];