This won't fly because you forgot to add PIPE_QUERY_OCCLUSION_PREDICATE in many places in nv50_query_hw.c (begin_query(), end_query()...).

On 02/04/2016 06:52 PM, Ilia Mirkin wrote:
Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu>
---
  src/gallium/drivers/nouveau/nv50/nv50_query_hw.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query_hw.c 
b/src/gallium/drivers/nouveau/nv50/nv50_query_hw.c
index cccd3b7..3727ac0 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_query_hw.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_query_hw.c
@@ -304,6 +304,9 @@ nv50_hw_get_query_result(struct nv50_context *nv50, struct 
nv50_query *q,
     case PIPE_QUERY_OCCLUSION_COUNTER: /* u32 sequence, u32 count, u64 time */
        res64[0] = hq->data[1] - hq->data[5];
        break;
+   case PIPE_QUERY_OCCLUSION_PREDICATE:
+      res8[0] = hq->data[1] != hq->data[5];
+      break;
     case PIPE_QUERY_PRIMITIVES_GENERATED: /* u64 count, u64 time */
     case PIPE_QUERY_PRIMITIVES_EMITTED: /* u64 count, u64 time */
        res64[0] = data64[0] - data64[2];


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

Reply via email to