i915g: make gears run again

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 3 November 2017 05:03 EDT

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")

cc69f2385e i915g: make gears run again.
src/gallium/drivers/i915/i915_state_derived.c | 17 +++++++++++++++++
src/gallium/drivers/i915/i915_state_dynamic.c | 3 ++-
src/gallium/drivers/i915/i915_state_immediate.c | 6 ++++--
src/gallium/drivers/i915/i915_state_static.c | 2 +-
4 files changed, 24 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share