summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-04 11:40:10 +1100
committerTimothy Arceri <[email protected]>2017-01-06 11:21:42 +1100
commit4807a83da0e0f5e3272e85504ee3b2213ef1910a (patch)
tree049b5850dad445b764189b9ba122b6fb51876d63 /src/mesa/state_tracker
parentc46a630000a2539e38a448f24a456397ce201a2e (diff)
mesa/glsl: set num_textures per stage directly in shader_info
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index b4ccc5f0525..12a53ecb73d 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -6636,7 +6636,7 @@ set_affected_state_flags(uint64_t *states,
if (prog->Parameters->NumParameters)
*states |= new_constants;
- if (shader->num_samplers)
+ if (prog->info.num_textures)
*states |= new_sampler_views | new_samplers;
if (shader->NumImages)