svga: Check rasterization state object before checking poly_stipple_enable
authorNeha Bhende <bhenden@vmware.com>
Mon, 22 Jan 2018 23:01:20 +0000 (15:01 -0800)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 04:04:49 +0000 (21:04 -0700)
commite4ca1d64565b4d665bcaf5d08922bfbe1d920e7a
tree86e2019f23d89d3d6e301cf129a396ae36e46983
parentd4a5e14fae17c7ea7bb8d1d0d6467fd4e0706dd1
svga: Check rasterization state object before checking poly_stipple_enable

Sometimes rasterization state object could be empty. This is causing
segfault on hw8,9,10 for some traces.

This patch fixes enemy_territory_quake_wars_high,
enemy_territory_quake_wars_low, etqw-demo, lightsmark2008, quake1
glretrace crashes on hw 8,9,10.

Tested with mtt-glretrace and mtt-piglit.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_state_tss.c