projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb274a3
)
iris: fix depth bounds clamp enables
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 5 Jul 2018 09:48:23 +0000
(
02:48
-0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000
(10:26 -0800)
fixes depthrange-clear among others
src/gallium/drivers/iris/iris_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_state.c
b/src/gallium/drivers/iris/iris_state.c
index df724cedcee87fed925683280dba04afe5a3940a..7ba9c500cab69830c22215faf6f6b5d5c77813ca 100644
(file)
--- a/
src/gallium/drivers/iris/iris_state.c
+++ b/
src/gallium/drivers/iris/iris_state.c
@@
-577,8
+577,13
@@
iris_create_zsa_state(struct pipe_context *ctx,
}
iris_pack_state(GENX(CC_VIEWPORT), cso->cc_vp, ccvp) {
- ccvp.MinimumDepth = state->depth.bounds_min;
- ccvp.MaximumDepth = state->depth.bounds_max;
+ if (state->depth.bounds_test) {
+ ccvp.MinimumDepth = state->depth.bounds_min;
+ ccvp.MaximumDepth = state->depth.bounds_max;
+ } else {
+ ccvp.MinimumDepth = 0.0;
+ ccvp.MaximumDepth = 1.0;
+ }
}
return cso;