Mesa (master): nv50: fix query assertion
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sun Feb 13 21:06:04 UTC 2011
Module: Mesa
Branch: master
Commit: 8fe5da89e33a2408c21dd536d0b2e2178aeaef1e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fe5da89e33a2408c21dd536d0b2e2178aeaef1e
Author: Marcin Slusarz <marcin.slusarz at gmail.com>
Date: Sun Feb 13 22:05:28 2011 +0100
nv50: fix query assertion
---
src/gallium/drivers/nv50/nv50_query.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_query.c b/src/gallium/drivers/nv50/nv50_query.c
index 53f9482..f3418df 100644
--- a/src/gallium/drivers/nv50/nv50_query.c
+++ b/src/gallium/drivers/nv50/nv50_query.c
@@ -45,7 +45,7 @@ nv50_query_create(struct pipe_context *pipe, unsigned type)
struct nv50_query *q = CALLOC_STRUCT(nv50_query);
int ret;
- assert (q->type == PIPE_QUERY_OCCLUSION_COUNTER);
+ assert (type == PIPE_QUERY_OCCLUSION_COUNTER);
q->type = type;
ret = nouveau_bo_new(dev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, 256,
More information about the mesa-commit
mailing list