mesa: Add support for ARB_depth_clamp.

This currently doesn't include fixing up the cliptests in the assembly
paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
This commit is contained in:
Eric Anholt
2009-08-26 09:51:15 -07:00
parent 3e4539a471
commit b4922b5331
22 changed files with 158 additions and 40 deletions

View File

@@ -137,7 +137,8 @@ do_ndc_cliptest(GLcontext *ctx, struct vp_stage_data *store)
&store->ndcCoords,
store->clipmask,
&store->ormask,
&store->andmask );
&store->andmask,
!ctx->Transform.DepthClamp );
}
else {
VB->NdcPtr = NULL;
@@ -145,7 +146,8 @@ do_ndc_cliptest(GLcontext *ctx, struct vp_stage_data *store)
NULL,
store->clipmask,
&store->ormask,
&store->andmask );
&store->andmask,
!ctx->Transform.DepthClamp );
}
if (store->andmask) {