st/xorg: bind rasterizer state
authorZack Rusin <zackr@vmware.com>
Thu, 27 Aug 2009 22:08:58 +0000 (18:08 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 27 Aug 2009 22:08:58 +0000 (18:08 -0400)
src/gallium/state_trackers/xorg/xorg_composite.c

index c566d2d75a8547e99c197e3a1195800f7edab10b..7e9dabf885a0644af001cc3ae1c83f7292358668 100644 (file)
@@ -218,8 +218,12 @@ bind_blend_state(struct exa_context *exa, int op,
 }
 
 static void
-bind_rasterizer_state()
+bind_rasterizer_state(struct exa_context *exa)
 {
+   struct pipe_rasterizer_state raster;
+   memset(&raster, 0, sizeof(struct pipe_rasterizer_state));
+   raster.gl_rasterization_rules = 1;
+   cso_set_rasterizer(exa->cso, &raster);
 }
 
 static void
@@ -240,7 +244,7 @@ boolean xorg_composite_bind_state(struct exa_context *exa,
    bind_framebuffer_state(exa, pDstPicture, pDst);
    bind_viewport_state(exa, pDstPicture);
    bind_blend_state(exa, op, pSrcPicture, pMaskPicture);
-   bind_rasterizer_state();
+   bind_rasterizer_state(exa);
    bind_shaders();
 
    return FALSE;