mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +01:00
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>
This commit is contained in:
parent
d4a5e14fae
commit
e4ca1d6456
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ svga_reemit_tss_bindings(struct svga_context *svga)
|
|||
}
|
||||
|
||||
/* Polygon stipple */
|
||||
if (svga->curr.rast->templ.poly_stipple_enable) {
|
||||
if (svga->curr.rast && svga->curr.rast->templ.poly_stipple_enable) {
|
||||
const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit;
|
||||
struct svga_hw_view_state *view = &svga->state.hw_draw.views[unit];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue