diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index 3b8a5d9b91e..77bbecf2a4e 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -181,7 +181,7 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) cl_u8(&vc4->shader_rec, i * 16); /* CS VPM offset */ } - if (vc4->zsa && vc4->zsa->depth.enabled) { + if (vc4->zsa && vc4->zsa->base.depth.enabled) { vc4->resolve |= PIPE_CLEAR_DEPTH; } vc4->resolve |= PIPE_CLEAR_COLOR0; @@ -215,6 +215,9 @@ vc4_clear(struct pipe_context *pctx, unsigned buffers, color->f); } + if (buffers & PIPE_CLEAR_DEPTH) + vc4->clear_depth = util_pack_z(PIPE_FORMAT_Z24X8_UNORM, depth); + vc4->cleared |= buffers; vc4->resolve |= buffers; |