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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user