summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_util.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-05 03:23:05 +0200
committerMarek Olšák <[email protected]>2011-09-10 08:53:29 +0200
commitd8452a0be810d7176b0cbfe6632fc0f8016b5733 (patch)
tree013c479d43d2ee451289ea2627c5d43cfeb27746 /src/gallium/auxiliary/tgsi/tgsi_util.c
parent379429137238e79296b8222c0e13d7d961910633 (diff)
gallium: add shadow 1D and 2D array samplers to TGSI
And filling in all the switch statements in auxiliary. Mostly untested.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_util.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c
index aa9a886d4a9..9f6997dc88a 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_util.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_util.c
@@ -270,21 +270,21 @@ tgsi_util_get_inst_usage_mask(const struct tgsi_full_instruction *inst,
case TGSI_TEXTURE_SHADOW1D:
read_mask = TGSI_WRITEMASK_XZ;
break;
+ case TGSI_TEXTURE_1D_ARRAY:
case TGSI_TEXTURE_2D:
case TGSI_TEXTURE_RECT:
read_mask = TGSI_WRITEMASK_XY;
break;
+ case TGSI_TEXTURE_SHADOW1D_ARRAY:
case TGSI_TEXTURE_SHADOW2D:
case TGSI_TEXTURE_SHADOWRECT:
+ case TGSI_TEXTURE_2D_ARRAY:
case TGSI_TEXTURE_3D:
case TGSI_TEXTURE_CUBE:
read_mask = TGSI_WRITEMASK_XYZ;
break;
- case TGSI_TEXTURE_1D_ARRAY:
- read_mask = TGSI_WRITEMASK_XY;
- break;
- case TGSI_TEXTURE_2D_ARRAY:
- read_mask = TGSI_WRITEMASK_XYZ;
+ case TGSI_TEXTURE_SHADOW2D_ARRAY:
+ read_mask = TGSI_WRITEMASK_XYZW;
break;
default:
assert(0);