svga: fix test for SVGA_NEW_STIPPLE
authorBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2016 20:03:04 +0000 (13:03 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2016 20:03:04 +0000 (13:03 -0700)
commiteec8d7e7e059c19b86cce0360cb7db28aef1f1dd
tree63371a794f6212cf75dd39988e174359ccabedfe
parent993b04ee2c415e15f89e2717cfeff90225452937
svga: fix test for SVGA_NEW_STIPPLE

We only want to set the SVGA_NEW_STIPPLE dirty flag when the polygon
stipple state changes.  Before, we only set the flag when we were
enabling stipple, but not disabling.

We don't really have to add SVGA_NEW_STIPPLE to the dirty FS state
set since it's a subset of SVGA_NEW_RAST, but let's be explicit.

This doesn't fix any known bugs.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_rasterizer.c
src/gallium/drivers/svga/svga_state_fs.c