softpipe: check for SP_NEW_STIPPLE when building quad pipeline
authorBrian Paul <brianp@vmware.com>
Fri, 31 Oct 2014 02:45:36 +0000 (20:45 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 31 Oct 2014 21:29:59 +0000 (15:29 -0600)
Fixes polygon stipple if both DO_PSTIPPLE_IN_DRAW_MODULE and
DO_PSTIPPLE_IN_HELPER_MODULE are zero/off.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/softpipe/sp_state_derived.c

index dc73910d18c4dfc594673a0fd700f93f06b5febd..2a6a6f47f55d72118dfc6f6bfce69a643e2a2787 100644 (file)
@@ -402,6 +402,7 @@ softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim)
    if (softpipe->dirty & (SP_NEW_BLEND |
                           SP_NEW_DEPTH_STENCIL_ALPHA |
                           SP_NEW_FRAMEBUFFER |
+                          SP_NEW_STIPPLE |
                           SP_NEW_FS))
       sp_build_quad_pipeline(softpipe);