diff options
author | Ilia Mirkin <[email protected]> | 2016-11-04 21:01:18 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-09 20:25:15 -0500 |
commit | 885c78801785701fdca0217a7b0f992f26115ee4 (patch) | |
tree | 7e0be956ad77ef458cf952be961250e9cf4a7d61 /src/compiler/glsl/opt_vectorize.cpp | |
parent | 828faaef40f9bd50cb75c2cde0d9393bc3fb6695 (diff) |
glsl: fix slot_end calculations and simplify reserved_slots check
The previous code was confused about whether slot_end was inclusive or
exclusive. Make it so that it is inclusive consistently, and use it for
setting the new location. This also avoids discrepancies in how
num_components is calculated vs the more manual approach taken for the
former reserved_slots check.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/opt_vectorize.cpp')
0 files changed, 0 insertions, 0 deletions