llvmpipe: We don't use the draw pipeline for offset_point/line.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 10 Oct 2013 00:00:35 +0000 (17:00 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 10 Oct 2013 04:09:07 +0000 (21:09 -0700)
Unless the polygon fill mode is different from PIPE_POLYGON_MODE_FILL,
so checking the the polygon mode is sufficient.

Testing done: no regression in polygon-mode-offset
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_rasterizer.c

index 6148337b72db31fed5ca556d0e0472a6f85fd581..2149ffc2351dab384a509e3cbcd0c410d399e5f8 100644 (file)
@@ -78,8 +78,6 @@ llvmpipe_create_rasterizer_state(struct pipe_context *pipe,
     */
    need_pipeline = (rast->fill_front != PIPE_POLYGON_MODE_FILL ||
                    rast->fill_back != PIPE_POLYGON_MODE_FILL ||
-                    rast->offset_point ||
-                    rast->offset_line ||
                    rast->point_smooth ||
                    rast->line_smooth ||
                    rast->line_stipple_enable ||