summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-11-14 10:50:59 -0700
committerBrian Paul <[email protected]>2017-11-15 16:12:43 -0700
commitdc37cb0f86d1a654f9db10b052e61d01fccef774 (patch)
tree61e96c6f7e319a496a5dc36480100d84761381ea /src/gallium/auxiliary/tgsi
parentbf41b2b2627aa3790d380092c28c5d3395cc9cde (diff)
tgsi: s/unsigned/enum tgsi_texture_type/
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_util.c6
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_util.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c
index afe5690ce09..6fc0530fe45 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_util.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_util.c
@@ -452,7 +452,7 @@ tgsi_util_get_src_from_ind(const struct tgsi_ind_register *reg)
* sample index.
*/
int
-tgsi_util_get_texture_coord_dim(unsigned tgsi_tex)
+tgsi_util_get_texture_coord_dim(enum tgsi_texture_type tgsi_tex)
{
/*
* Depending on the texture target, (src0.xyzw, src1.x) is interpreted
@@ -513,7 +513,7 @@ tgsi_util_get_texture_coord_dim(unsigned tgsi_tex)
* shadow reference coordinate.
*/
int
-tgsi_util_get_shadow_ref_src_index(unsigned tgsi_tex)
+tgsi_util_get_shadow_ref_src_index(enum tgsi_texture_type tgsi_tex)
{
switch (tgsi_tex) {
case TGSI_TEXTURE_SHADOW1D:
@@ -536,7 +536,7 @@ tgsi_util_get_shadow_ref_src_index(unsigned tgsi_tex)
boolean
-tgsi_is_shadow_target(unsigned target)
+tgsi_is_shadow_target(enum tgsi_texture_type target)
{
switch (target) {
case TGSI_TEXTURE_SHADOW1D:
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.h b/src/gallium/auxiliary/tgsi/tgsi_util.h
index 534b5f78eb1..ac04004751f 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_util.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_util.h
@@ -82,24 +82,24 @@ struct tgsi_src_register
tgsi_util_get_src_from_ind(const struct tgsi_ind_register *reg);
int
-tgsi_util_get_texture_coord_dim(unsigned tgsi_tex);
+tgsi_util_get_texture_coord_dim(enum tgsi_texture_type tgsi_tex);
int
-tgsi_util_get_shadow_ref_src_index(unsigned tgsi_tex);
+tgsi_util_get_shadow_ref_src_index(enum tgsi_texture_type tgsi_tex);
boolean
-tgsi_is_shadow_target(unsigned target);
+tgsi_is_shadow_target(enum tgsi_texture_type target);
static inline boolean
-tgsi_is_msaa_target(unsigned target)
+tgsi_is_msaa_target(enum tgsi_texture_type target)
{
return (target == TGSI_TEXTURE_2D_MSAA ||
target == TGSI_TEXTURE_2D_ARRAY_MSAA);
}
static inline bool
-tgsi_is_array_sampler(unsigned target)
+tgsi_is_array_sampler(enum tgsi_texture_type target)
{
return target == TGSI_TEXTURE_1D_ARRAY ||
target == TGSI_TEXTURE_SHADOW1D_ARRAY ||