Mesa (master): nv50: fix PIPELINE_STATISTICS with HUD, based on nvc0
Ilia Mirkin
imirkin at kemper.freedesktop.org
Fri May 22 16:49:46 UTC 2015
Module: Mesa
Branch: master
Commit: a21d23e191696ca130fd63617b8d177055b73dda
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a21d23e191696ca130fd63617b8d177055b73dda
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu May 21 20:14:44 2015 +0200
nv50: fix PIPELINE_STATISTICS with HUD, based on nvc0
Tested on NVA8. No regression for ARB_pipeline_statistics piglit tests.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nv50/nv50_query.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c b/src/gallium/drivers/nouveau/nv50/nv50_query.c
index a3c8841..da41209 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_query.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_query.c
@@ -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) {
More information about the mesa-commit
mailing list