[Mesa-dev] [PATCH 20/20] radeonsi: remove useless code in tex_fetch_args
Marek Olšák
maraeo at gmail.com
Wed Aug 7 17:21:00 PDT 2013
The array slice has already been added to "address".
---
src/gallium/drivers/radeonsi/radeonsi_shader.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 9ca7a0e..d695c9e 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -964,24 +964,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];
--
1.8.1.2
More information about the mesa-dev
mailing list