diff options
author | Eric Anholt <[email protected]> | 2017-11-02 18:45:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-11-07 09:40:25 -0800 |
commit | 6079f7c3c3ce30277ce671b9679186f243a5e570 (patch) | |
tree | d7a0c092f26ad6ed719f6623b05457696b3bb822 /src/gallium/drivers | |
parent | eeb9e80272cb0dd795c4197962f2af3398747dda (diff) |
broadcom/vc5: Disable early Z test when the FS writes Z.
Fixes piglit early-z.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_emit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index c0b5d541978..094d5482954 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -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 { |