[Mesa-dev] [PATCH 03/13] nvc0: fix handling of inverted render condition

Karol Herbst kherbst at redhat.com
Sun Jul 15 18:15:43 UTC 2018


From: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>

Wether we wait on an inverted rendering condition or not, we should not render
on a passed query.

This fixes the CTS test case 'KHR-GL45.conditional_render_inverted.functional'.

Signed-off-by: Karol Herbst <kherbst at redhat.com>
---
 src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c
index 1a3e4e794c0..51afc79f2ed 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c
@@ -128,7 +128,7 @@ nvc0_render_condition(struct pipe_context *pipe,
             else
                cond = NVC0_3D_COND_MODE_RES_NON_ZERO;
          } else {
-            cond = wait ? NVC0_3D_COND_MODE_EQUAL : NVC0_3D_COND_MODE_ALWAYS;
+            cond = NVC0_3D_COND_MODE_EQUAL;
          }
          break;
       default:
-- 
2.17.1



More information about the mesa-dev mailing list