diff options
author | Timothy Arceri <[email protected]> | 2016-11-09 10:00:09 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-06 11:21:42 +1100 |
commit | 937523971f42f37b40badb962e575ecd8258b2d5 (patch) | |
tree | f48bafe2f5916336dfcdb63a1bc8ba34cb277003 /src/mesa/main | |
parent | 53a509723ff10ae1494e611de3823f17b7e9f225 (diff) |
st/mesa/glsl: set SamplersUsed directly in gl_program
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index d05c25205ce..6ab5cdeec4e 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2356,7 +2356,6 @@ struct gl_linked_shader * \note Each of these fields is only set post-linking. */ /*@{*/ - GLbitfield active_samplers; /**< Bitfield of which samplers are used */ GLbitfield shadow_samplers; /**< Samplers used for shadow sampling. */ /*@}*/ @@ -2396,7 +2395,7 @@ struct gl_linked_shader static inline GLbitfield gl_external_samplers(struct gl_linked_shader *shader) { GLbitfield external_samplers = 0; - GLbitfield mask = shader->active_samplers; + GLbitfield mask = shader->Program->SamplersUsed; while (mask) { int idx = u_bit_scan(&mask); |