mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
iris: fix depth bounds clamp enables
fixes depthrange-clear among others
This commit is contained in:
parent
eb274a31bc
commit
f20fc950a7
1 changed files with 7 additions and 2 deletions
|
|
@ -577,8 +577,13 @@ iris_create_zsa_state(struct pipe_context *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
iris_pack_state(GENX(CC_VIEWPORT), cso->cc_vp, ccvp) {
|
iris_pack_state(GENX(CC_VIEWPORT), cso->cc_vp, ccvp) {
|
||||||
ccvp.MinimumDepth = state->depth.bounds_min;
|
if (state->depth.bounds_test) {
|
||||||
ccvp.MaximumDepth = state->depth.bounds_max;
|
ccvp.MinimumDepth = state->depth.bounds_min;
|
||||||
|
ccvp.MaximumDepth = state->depth.bounds_max;
|
||||||
|
} else {
|
||||||
|
ccvp.MinimumDepth = 0.0;
|
||||||
|
ccvp.MaximumDepth = 1.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cso;
|
return cso;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue