aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nouveau_context.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2006-12-26 21:10:38 +1100
committerBen Skeggs <[email protected]>2006-12-26 21:36:15 +1100
commit0b2b2de6cff23bc224f5471cc8d0812661a0d363 (patch)
tree96894d5975b0df79c07a70347cc7feba4ddf4272 /src/mesa/drivers/dri/nouveau/nouveau_context.c
parentc0a63d8e5e33b7fe3057e32f04c22969ac2adc1d (diff)
nouveau: Wait on notifier to check for completion of previous commands.
We can't wait on NV_PGRAPH_STATUS. We don't have the regs mapped, and there's no guarantee that we'll catch PGRAPH idle when multiple channels are active.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_context.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c
index 7aca31d0d3e..d68f4e77e73 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_context.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c
@@ -222,7 +222,8 @@ GLboolean nouveauCreateContext( const __GLcontextModes *glVisual,
break;
}
- nouveauSyncInitFuncs(ctx);
+ if (!nouveauSyncInitFuncs(ctx))
+ return GL_FALSE;
nmesa->hw_func.InitCard(nmesa);
nouveauInitState(ctx);