mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
broadcom/vc5: Disable early Z test when the FS writes Z.
Fixes piglit early-z.
This commit is contained in:
parent
eeb9e80272
commit
6079f7c3c3
1 changed files with 2 additions and 1 deletions
|
|
@ -287,7 +287,8 @@ vc5_emit_state(struct pipe_context *pctx)
|
|||
config.z_updates_enable =
|
||||
vc5->zsa->base.depth.writemask;
|
||||
config.early_z_enable =
|
||||
vc5->zsa->early_z_enable;
|
||||
(vc5->zsa->early_z_enable &&
|
||||
!vc5->prog.fs->prog_data.fs->writes_z);
|
||||
config.depth_test_function =
|
||||
vc5->zsa->base.depth.func;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue