freedreno/a3xx: enable polymode setting with non-fill modes
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Apr 2015 04:57:34 +0000 (00:57 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 18 Apr 2015 21:35:23 +0000 (17:35 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c

index 345f688fd5f11ac1a78f8053eb1522ecd6542166..94f6d6e1f51cdd8ba2306faf41bb1020702d0c16 100644 (file)
@@ -82,6 +82,10 @@ fd3_rasterizer_state_create(struct pipe_context *pctx,
                A3XX_PC_PRIM_VTX_CNTL_POLYMODE_FRONT_PTYPE(fd_polygon_mode(cso->fill_front)) |
                A3XX_PC_PRIM_VTX_CNTL_POLYMODE_BACK_PTYPE(fd_polygon_mode(cso->fill_back));
 
+       if (cso->fill_front != PIPE_POLYGON_MODE_FILL ||
+               cso->fill_back != PIPE_POLYGON_MODE_FILL)
+               so->pc_prim_vtx_cntl |= A3XX_PC_PRIM_VTX_CNTL_POLYMODE_ENABLE;
+
        if (cso->cull_face & PIPE_FACE_FRONT)
                so->gras_su_mode_control |= A3XX_GRAS_SU_MODE_CONTROL_CULL_FRONT;
        if (cso->cull_face & PIPE_FACE_BACK)