i915g: make gears run again.
authorDave Airlie <airlied@redhat.com>
Fri, 26 May 2017 01:24:59 +0000 (11:24 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 05:03:30 +0000 (15:03 +1000)
commitcc69f2385ee5405cd1bef746d3e9006fc5430545
treea4567640f45c265abc16982fbdcad3faa504c9f2
parent6e2eb96b6442f9f0660685af4172ab947c16e7c4
i915g: make gears run again.

We need to validate some structs exist before we dirty the states, and
avoid the problem in some other places.

Fixes: e027935a7 ("st/mesa: don't update unrelated states in non-draw calls such as Clear")
src/gallium/drivers/i915/i915_state_derived.c
src/gallium/drivers/i915/i915_state_dynamic.c
src/gallium/drivers/i915/i915_state_immediate.c
src/gallium/drivers/i915/i915_state_static.c