[03/13] nvc0: fix handling of inverted render condition

Submitted by Karol Herbst on July 15, 2018, 6:15 p.m.

Details

Message ID 20180715181553.26220-4-kherbst@redhat.com
State New
Headers show
Series "WIP CTS fixes for Nouveau" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Karol Herbst July 15, 2018, 6:15 p.m.
From: Tobias Klausmann <tobias.johannes.klausmann@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@redhat.com>
---
 src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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: