From 74adf22a0aeeaf5f63748394d2da0337b04b1526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 30 Oct 2021 11:43:42 -0400 Subject: [PATCH] radeonsi: fix a typo preventing a fast depth-stencil clear Fixes: 9defe8aca953b69615728c8 - radeonsi: implement fast Z/S clears using clear_buffer on HTILE Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_clear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 2985b5d14bd..8aa192e197b 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -806,7 +806,7 @@ static void si_fast_clear(struct si_context *sctx, unsigned *buffers, zstex->depth_cleared_level_mask |= BITFIELD_BIT(level); update_db_depth_clear = true; } - } else if ((*buffers & PIPE_BIND_DEPTH_STENCIL) == PIPE_BIND_DEPTH_STENCIL) { + } else if ((*buffers & PIPE_CLEAR_DEPTHSTENCIL) == PIPE_CLEAR_DEPTHSTENCIL) { if (si_can_fast_clear_depth(zstex, level, depth, *buffers) && si_can_fast_clear_stencil(zstex, level, stencil, *buffers)) { /* Combined Z+S clear. */ @@ -881,7 +881,7 @@ static void si_fast_clear(struct si_context *sctx, unsigned *buffers, zstex->depth_cleared_level_mask |= BITFIELD_BIT(level); update_db_depth_clear = true; } - } else if ((*buffers & PIPE_BIND_DEPTH_STENCIL) == PIPE_BIND_DEPTH_STENCIL) { + } else if ((*buffers & PIPE_CLEAR_DEPTHSTENCIL) == PIPE_CLEAR_DEPTHSTENCIL) { if (htile_size && si_can_fast_clear_depth(zstex, level, depth, *buffers) && si_can_fast_clear_stencil(zstex, level, stencil, *buffers)) {