diff options
author | Zack Rusin <zackr@vmware.com> | 2009-08-27 18:08:58 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2009-08-27 18:08:58 -0400 |
commit | c7e103d2388ea53348c9537adf40c643f80e76dc (patch) | |
tree | f3535fec933ed2dff30078d793e7a72dbc237d03 /src | |
parent | 2048182e868a759c3198b3cbaf2dd1d366fe0a21 (diff) | |
download | external_mesa3d-c7e103d2388ea53348c9537adf40c643f80e76dc.zip external_mesa3d-c7e103d2388ea53348c9537adf40c643f80e76dc.tar.gz external_mesa3d-c7e103d2388ea53348c9537adf40c643f80e76dc.tar.bz2 |
st/xorg: bind rasterizer state
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_composite.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c index c566d2d..7e9dabf 100644 --- a/src/gallium/state_trackers/xorg/xorg_composite.c +++ b/src/gallium/state_trackers/xorg/xorg_composite.c @@ -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; |