diff options
author | Chia-I Wu <[email protected]> | 2013-05-07 15:32:35 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-08 10:58:53 +0800 |
commit | 80857d2c8b867f6060451c14e5aff5438f5d30f7 (patch) | |
tree | f38969dcedbc526b543d92a902485c079d36e705 /src/gallium/auxiliary/tgsi/tgsi_util.h | |
parent | 14a0bb81fef164949aeb2ec2bcfe14fee4627eeb (diff) |
tgsi: add tgsi_util_get_texture_coord_dim()
This util function returns the dimension of the texture coordinates for a
texture target, and the location of the shadow reference value.
For example, when the texture target is TGSI_TEXTURE_SHADOW2D, the dimension
of the texture coordinates is 2, and the location of the ref value is 2
(that is, the Z channel).
Signed-off-by: Chia-I Wu <[email protected]>
Acked-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_util.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.h b/src/gallium/auxiliary/tgsi/tgsi_util.h index d9f8859a353..c1184c8b465 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.h +++ b/src/gallium/auxiliary/tgsi/tgsi_util.h @@ -79,6 +79,9 @@ tgsi_util_get_inst_usage_mask(const struct tgsi_full_instruction *inst, struct tgsi_src_register tgsi_util_get_src_from_ind(const struct tgsi_ind_register *reg); +int +tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample); + #if defined __cplusplus } #endif |