nv50: fix PIPELINE_STATISTICS with HUD, based on nvc0
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 May 2015 18:14:44 +0000 (20:14 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 May 2015 09:39:23 +0000 (11:39 +0200)
Tested on NVA8. No regression for ARB_pipeline_statistics piglit tests.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_query.c

index a3c884111990be6b653e46bccd1c7bcda1be96d1..da412097f382c46abea2c356c7ef182946ee31cf 100644 (file)
@@ -114,7 +114,8 @@ nv50_query_create(struct pipe_context *pipe, unsigned type, unsigned index)
 
    q->is64bit = (type == PIPE_QUERY_PRIMITIVES_GENERATED ||
                  type == PIPE_QUERY_PRIMITIVES_EMITTED ||
-                 type == PIPE_QUERY_SO_STATISTICS);
+                 type == PIPE_QUERY_SO_STATISTICS ||
+                 type == PIPE_QUERY_PIPELINE_STATISTICS);
    q->type = type;
 
    if (q->type == PIPE_QUERY_OCCLUSION_COUNTER) {