llvmpipe: Pass flatshade_first to setup.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Apr 2010 11:00:06 +0000 (12:00 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Apr 2010 11:00:06 +0000 (12:00 +0100)
Fixes piglit provoking-vertex.

src/gallium/drivers/llvmpipe/lp_state_rasterizer.c

index 47f65fe72d186d035afea86835e1655b56f6e793..3fba5e4e75dbe87b8b47aea989ae0aa7a8c88feb 100644 (file)
@@ -71,6 +71,8 @@ llvmpipe_bind_rasterizer_state(struct pipe_context *pipe, void *handle)
                    llvmpipe->rasterizer->front_winding == PIPE_WINDING_CCW,
                    llvmpipe->rasterizer->scissor,
                    llvmpipe->rasterizer->gl_rasterization_rules);
+      lp_setup_set_flatshade_first( llvmpipe->setup,
+                   llvmpipe->rasterizer->flatshade_first);
    }
 
    llvmpipe->dirty |= LP_NEW_RASTERIZER;