radeonsi: remove useless code from tex_fetch_args
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Aug 2013 01:20:34 +0000 (03:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 16 Aug 2013 23:48:25 +0000 (01:48 +0200)
The array slice has already been added to "address".

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 3e62858c08d47311761dae6e3a38f9c34b38541d..f1c7c6bbf9ebc4774809fb416416fbb0a07199dc 100644 (file)
@@ -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];