diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-08-15 14:27:46 +1000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-08-15 14:31:26 +1000 |
commit | c2ac825e67f0c2da4385eadb3e01eeb295ccc8a2 (patch) | |
tree | aa69865f647f9423bd08c7e32dfb7cc78b70a32d | |
parent | ecfa3e4d0aa93ca597a19693c30532655795e9d8 (diff) |
nouveau: Use half the notifier block for query objects.
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_query.c b/src/mesa/drivers/dri/nouveau/nouveau_query.c index 0154140069..e5c1750a8e 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_query.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_query.c @@ -167,7 +167,8 @@ nouveauQueryInitFuncs(GLcontext *ctx) if (nmesa->screen->card->type < NV_20) return; - nmesa->query_object_max = (0x4000 / 32); + /* Reserve half the notifier block for use as query objects */ + nmesa->query_object_max = (nmesa->fifo.drm.notifier_size / 2) / 32; nmesa->queryNotifier = nouveau_notifier_new(ctx, NvQueryNotify, nmesa->query_object_max); |