aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_bitmap.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-07-13 20:43:57 -0700
committerKenneth Graunke <[email protected]>2017-07-17 01:37:51 -0700
commit32c79cdaccec9aaa97528c6a51312bcc9078eb35 (patch)
treeab58782ac2aef826bd0106e70dbc25a56d2aa1ac /src/mesa/state_tracker/st_cb_bitmap.h
parent6374288b62aaab0da05d9218c31ffea5724f2607 (diff)
meta: Actually initialize ImmutableLevels to 1.
Otherwise, ImmutableLevels is 0, which is an illegal value. Later, _mesa_meta_setup_sampler will use _mesa_texture_parameteriv to set texObj->MaxLevel = CLAMP(params[0], texObj->BaseLevel, texObj->ImmutableLevels - 1); which turns into a completely bogus CLAMP(value, 0, -1)...where the upper bound is smaller than the lower bound. This ends up being -1 today due to the way CLAMP is implemented, which is a bogus MaxLevel. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bitmap.h')
0 files changed, 0 insertions, 0 deletions