From: Ben Skeggs Date: Wed, 15 Aug 2007 04:27:46 +0000 (+1000) Subject: nouveau: Use half the notifier block for query objects. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2ac825e67f0c2da4385eadb3e01eeb295ccc8a2;p=mesa.git nouveau: Use half the notifier block for query objects. --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_query.c b/src/mesa/drivers/dri/nouveau/nouveau_query.c index 01541400690..e5c1750a8ec 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);