diff options
author | Ben Skeggs <[email protected]> | 2012-05-11 03:02:13 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2012-05-12 12:42:47 +1000 |
commit | 666004148353fa46e818772e496f6d09bd979737 (patch) | |
tree | cf8edcd01339a976f906ed8a6b152a38be0208e8 /src/mesa/drivers/dri/nouveau/nouveau_context.c | |
parent | 9d6b46b1cd459ee6c0db4bfe518adb6928c5b59f (diff) |
nouveau/vieux: finish != flush, how about we do that..
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_context.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index 2625b76d14f..d7d5a04e692 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -83,6 +83,13 @@ nouveau_context_create(gl_api api, return GL_FALSE; } + if (nouveau_bo_new(context_dev(ctx), NOUVEAU_BO_VRAM, 0, 4096, + NULL, &nctx->fence)) { + nouveau_context_destroy(dri_ctx); + *error = __DRI_CTX_ERROR_NO_MEMORY; + return GL_FALSE; + } + *error = __DRI_CTX_ERROR_SUCCESS; return GL_TRUE; } @@ -209,6 +216,7 @@ nouveau_context_destroy(__DRIcontext *dri_ctx) struct nouveau_context *nctx = dri_ctx->driverPrivate; struct gl_context *ctx = &nctx->base; + nouveau_bo_ref(NULL, &nctx->fence); context_drv(ctx)->context_destroy(ctx); } |