[Mesa-dev] [PATCH 3/7] st/glsl_to_tgsi: make samplers_used an uint32_t

Nicolai Hähnle nhaehnle at gmail.com
Wed Apr 6 22:46:59 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

It is used as a bitfield, so it seems cleaner to keep it unsigned.
---
 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index cd481c1..e658168 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -389,7 +389,7 @@ public:
    unsigned num_output_arrays;
 
    int num_address_regs;
-   int samplers_used;
+   uint32_t samplers_used;
    glsl_base_type sampler_types[PIPE_MAX_SAMPLERS];
    int sampler_targets[PIPE_MAX_SAMPLERS];   /**< One of TGSI_TEXTURE_* */
    int buffers_used;
-- 
2.5.0



More information about the mesa-dev mailing list