From: Nicolai Hähnle <nicolai.haeh...@amd.com>

The documentation and the HW team say so.
---
 src/gallium/drivers/radeonsi/si_blit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_blit.c 
b/src/gallium/drivers/radeonsi/si_blit.c
index b87275d..6fa5b97 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -497,7 +497,7 @@ static void si_clear(struct pipe_context *ctx, unsigned 
buffers,
                if (buffers & PIPE_CLEAR_DEPTH) {
                        /* Need to disable EXPCLEAR temporarily if clearing
                         * to a new value. */
-                       if (zstex->depth_cleared && zstex->depth_clear_value != 
depth) {
+                       if (!zstex->depth_cleared || zstex->depth_clear_value 
!= depth) {
                                sctx->db_depth_disable_expclear = true;
                        }
 
@@ -513,7 +513,7 @@ static void si_clear(struct pipe_context *ctx, unsigned 
buffers,
 
                        /* Need to disable EXPCLEAR temporarily if clearing
                         * to a new value. */
-                       if (zstex->stencil_cleared && 
zstex->stencil_clear_value != stencil) {
+                       if (!zstex->stencil_cleared || 
zstex->stencil_clear_value != stencil) {
                                sctx->db_stencil_disable_expclear = true;
                        }
 
-- 
2.5.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to