diff options
author | Eric Anholt <eric@anholt.net> | 2009-08-26 11:04:13 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-09-08 14:30:18 -0700 |
commit | 0310aafd9ea502e07a86b355cfca902102b9117c (patch) | |
tree | 8453506d3c833257018de2bb352803f3365260c9 /src/mesa/drivers/dri/i965/brw_cc.c | |
parent | 0e5c2598ec8cd9e20cb02e2b120d5b43103b7b05 (diff) | |
download | external_mesa3d-0310aafd9ea502e07a86b355cfca902102b9117c.zip external_mesa3d-0310aafd9ea502e07a86b355cfca902102b9117c.tar.gz external_mesa3d-0310aafd9ea502e07a86b355cfca902102b9117c.tar.bz2 |
i965: Add support for ARB_depth_clamp.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cc.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c index c724218..1088a7a 100644 --- a/src/mesa/drivers/dri/i965/brw_cc.c +++ b/src/mesa/drivers/dri/i965/brw_cc.c @@ -39,12 +39,14 @@ static void prepare_cc_vp( struct brw_context *brw ) { + GLcontext *ctx = &brw->intel.ctx; struct brw_cc_viewport ccv; memset(&ccv, 0, sizeof(ccv)); - ccv.min_depth = 0.0; - ccv.max_depth = 1.0; + /* _NEW_VIEWPORT */ + ccv.min_depth = ctx->Viewport.Near; + ccv.max_depth = ctx->Viewport.Far; dri_bo_unreference(brw->cc.vp_bo); brw->cc.vp_bo = brw_cache_data( &brw->cache, BRW_CC_VP, &ccv, NULL, 0 ); @@ -52,7 +54,7 @@ static void prepare_cc_vp( struct brw_context *brw ) const struct brw_tracked_state brw_cc_vp = { .dirty = { - .mesa = 0, + .mesa = _NEW_VIEWPORT, .brw = BRW_NEW_CONTEXT, .cache = 0 }, |