diff options
author | Chia-I Wu <[email protected]> | 2013-05-23 13:24:55 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-27 11:02:06 +0800 |
commit | 441aa9326a2c7b575f833ed18e97f3ce70844b25 (patch) | |
tree | 1a4de3de9c652fdeea031e9ab07454178a3fb013 /src/gallium/auxiliary/tgsi/tgsi_util.c | |
parent | 63d09a0cb74f75e7e09773d560a22452c107647f (diff) |
tgsi: add buffer texture to tgsi_util_get_texture_coord_dim()
TGSI_TEXTURE_BUFFER is one-dimensional. Assert that exec_tex() is never
called with TGSI_TEXTURE_BUFFER.
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_util.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c index 862b79f173e..98c1e6e6e51 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.c +++ b/src/gallium/auxiliary/tgsi/tgsi_util.c @@ -353,6 +353,7 @@ tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample) * Depending on the texture target, (src0.xyzw, src1.x) is interpreted * differently: * + * (s, X, X, X, X), for BUFFER * (s, X, X, X, X), for 1D * (s, t, X, X, X), for 2D, RECT * (s, t, r, X, X), for 3D, CUBE @@ -373,6 +374,7 @@ tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample) * (s, t, layer, sample, X), for 2D_ARRAY_MSAA */ switch (tgsi_tex) { + case TGSI_TEXTURE_BUFFER: case TGSI_TEXTURE_1D: case TGSI_TEXTURE_SHADOW1D: dim = 1; |