diff options
author | Marek Olšák <[email protected]> | 2013-08-06 06:21:11 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-08-15 02:03:02 +0200 |
commit | 0ee4bae70d188118417c50ba223fe3638a85b8ce (patch) | |
tree | 4881a70a657abdfe65babcb11caffec8f393d9df | |
parent | 7727fbb7c5d64348994bce6682e681d6181a91e9 (diff) |
tgsi: fix the location of sample index
The sample index is always in W.
Reviewed-by: Michel Dänzer <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c index 39b605bd071..b3bc8f283a4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.c +++ b/src/gallium/auxiliary/tgsi/tgsi_util.c @@ -444,9 +444,11 @@ tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample) case TGSI_TEXTURE_SHADOW1D_ARRAY: case TGSI_TEXTURE_SHADOW2D_ARRAY: case TGSI_TEXTURE_SHADOWCUBE_ARRAY: + *shadow_or_sample = dim; + break; case TGSI_TEXTURE_2D_MSAA: case TGSI_TEXTURE_2D_ARRAY_MSAA: - *shadow_or_sample = dim; + *shadow_or_sample = 3; break; default: /* no shadow nor sample */ |