diff options
author | Keith Whitwell <[email protected]> | 2009-07-25 11:01:48 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:18 +0100 |
commit | b8c437f20f130768e7709eb06112c955619aa2f0 (patch) | |
tree | 893aa2d445482da31e8fbb57da0cafac55e8f430 /src/gallium/drivers | |
parent | c5375da1dc058311f4d1b2f78c83eccefff5c732 (diff) |
llvmpipe: fix error in scissor state dependencies
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_derived.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_derived.c b/src/gallium/drivers/llvmpipe/lp_state_derived.c index 59b06f53361..e2b6b8e6027 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_derived.c +++ b/src/gallium/drivers/llvmpipe/lp_state_derived.c @@ -165,11 +165,19 @@ llvmpipe_get_vbuf_vertex_info(struct llvmpipe_context *llvmpipe) static void compute_cliprect(struct llvmpipe_context *lp) { + /* LP_NEW_FRAMEBUFFER + */ uint surfWidth = lp->framebuffer.width; uint surfHeight = lp->framebuffer.height; + /* LP_NEW_RASTERIZER + */ if (lp->rasterizer->scissor) { - /* clip to scissor rect */ + + /* LP_NEW_SCISSOR + * + * clip to scissor rect: + */ lp->cliprect.minx = MAX2(lp->scissor.minx, 0); lp->cliprect.miny = MAX2(lp->scissor.miny, 0); lp->cliprect.maxx = MIN2(lp->scissor.maxx, surfWidth); @@ -231,7 +239,7 @@ void llvmpipe_update_derived( struct llvmpipe_context *llvmpipe ) invalidate_vertex_layout( llvmpipe ); if (llvmpipe->dirty & (LP_NEW_SCISSOR | - LP_NEW_DEPTH_STENCIL_ALPHA | + LP_NEW_RASTERIZER | LP_NEW_FRAMEBUFFER)) compute_cliprect(llvmpipe); |