search for: nouveau_fence_mgr

Displaying 4 results from an estimated 4 matches for "nouveau_fence_mgr".

2014 Jun 16
2
[PATCH 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
...uveau/nouveau_fence.c index c686710..09b3b1e 100644 --- a/src/gallium/drivers/nouveau/nouveau_fence.c +++ b/src/gallium/drivers/nouveau/nouveau_fence.c @@ -31,14 +31,14 @@ #endif boolean -nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence, +nouveau_fence_new(struct nouveau_fence_mgr *mgr, struct nouveau_fence **fence, boolean emit) { *fence = CALLOC_STRUCT(nouveau_fence); if (!*fence) return FALSE; - (*fence)->screen = screen; + (*fence)->mgr = mgr; (*fence)->ref = 1; LIST_INITHEAD(&(*fence)->work); @@...
2014 Jun 17
2
[PATCH try 2 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
.../nouveau/nouveau_fence.c index c686710..09b3b1e 100644 --- a/src/gallium/drivers/nouveau/nouveau_fence.c +++ b/src/gallium/drivers/nouveau/nouveau_fence.c @@ -31,14 +31,14 @@ #endif boolean -nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence, +nouveau_fence_new(struct nouveau_fence_mgr *mgr, struct nouveau_fence **fence, boolean emit) { *fence = CALLOC_STRUCT(nouveau_fence); if (!*fence) return FALSE; - (*fence)->screen = screen; + (*fence)->mgr = mgr; (*fence)->ref = 1; LIST_INITHEAD(&(*fence)->work); @@ -83,7 +8...
2014 Jun 17
0
[PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...vers/nouveau/nouveau_context.h index 14608d3..48e2a66 100644 --- a/src/gallium/drivers/nouveau/nouveau_context.h +++ b/src/gallium/drivers/nouveau/nouveau_context.h @@ -49,6 +49,8 @@ struct nouveau_context { uint32_t buf_cache_count; uint32_t buf_cache_frame; } stats; + + struct nouveau_fence_mgr fence; }; static INLINE struct nouveau_context * @@ -91,6 +93,7 @@ nouveau_context_destroy(struct nouveau_context *ctx) if (ctx->scratch.bo[i]) nouveau_bo_ref(NULL, &ctx->scratch.bo[i]); + nouveau_pushbuf_del(&ctx->pushbuf); FREE(ctx); } @@ -106,4 +1...
2014 Jun 21
3
[Mesa-dev] [PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...08d3..48e2a66 100644 > --- a/src/gallium/drivers/nouveau/nouveau_context.h > +++ b/src/gallium/drivers/nouveau/nouveau_context.h > @@ -49,6 +49,8 @@ struct nouveau_context { > uint32_t buf_cache_count; > uint32_t buf_cache_frame; > } stats; > + > + struct nouveau_fence_mgr fence; > }; > > static INLINE struct nouveau_context * > @@ -91,6 +93,7 @@ nouveau_context_destroy(struct nouveau_context *ctx) > if (ctx->scratch.bo[i]) > nouveau_bo_ref(NULL, &ctx->scratch.bo[i]); > > + nouveau_pushbuf_del(&ctx->pushbu...