mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
have to check I915_HW_SAMPLER when emitting MAP state, because of sampler_enable_flags.
This commit is contained in:
parent
b4d8be235b
commit
7a1027cd40
1 changed files with 7 additions and 1 deletions
|
|
@ -192,8 +192,14 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
|||
|
||||
#if 01
|
||||
/* texture images */
|
||||
if (i915->hardware_dirty & I915_HW_MAP)
|
||||
if (i915->hardware_dirty & (I915_HW_MAP | I915_HW_SAMPLER))
|
||||
{
|
||||
/* XXX: we were refering to sampler state
|
||||
* (current.sampler_enable_nr) below, but only checking
|
||||
* I915_HW_MAP above. Should probably calculate the enabled
|
||||
* flags separately - but there will be further rework of
|
||||
* state so perhaps not necessary yet.
|
||||
*/
|
||||
const uint nr = i915->current.sampler_enable_nr;
|
||||
if (nr) {
|
||||
const uint enabled = i915->current.sampler_enable_flags;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue