diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/galahad/glhd_context.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/i915/i915_flush.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/identity/id_context.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/noop/noop_pipe.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/nv30/nv30_context.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/nv50/nv50_context.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/rbug/rbug_core.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/sp_flush.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/sp_flush.h | 5 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_flush.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 6 |
18 files changed, 42 insertions, 28 deletions
diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c index 151c8f48f5e..8901b6ab712 100644 --- a/src/gallium/drivers/galahad/glhd_context.c +++ b/src/gallium/drivers/galahad/glhd_context.c @@ -843,13 +843,13 @@ galahad_context_clear_depth_stencil(struct pipe_context *_pipe, static void galahad_context_flush(struct pipe_context *_pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct galahad_context *glhd_pipe = galahad_context(_pipe); struct pipe_context *pipe = glhd_pipe->pipe; - pipe->flush(pipe, - fence); + pipe->flush(pipe, fence, flags); } static struct pipe_sampler_view * diff --git a/src/gallium/drivers/i915/i915_flush.c b/src/gallium/drivers/i915/i915_flush.c index 50d6642e5a3..d44b6f77c7f 100644 --- a/src/gallium/drivers/i915/i915_flush.c +++ b/src/gallium/drivers/i915/i915_flush.c @@ -39,7 +39,8 @@ static void i915_flush_pipe( struct pipe_context *pipe, - struct pipe_fence_handle **fence ) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags ) { struct i915_context *i915 = i915_context(pipe); diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index 76b232fd3e1..d9f58c01ac1 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -762,7 +762,7 @@ i915_texture_transfer_map(struct pipe_context *pipe, } else { /* TODO this is a sledgehammer */ tex = i915_texture(resource); - pipe->flush(pipe, NULL); + pipe->flush(pipe, NULL, 0); } offset = i915_texture_offset(tex, transfer->b.level, box->z); @@ -805,7 +805,7 @@ i915_texture_transfer_unmap(struct pipe_context *pipe, itransfer->b.box.x, itransfer->b.box.y, itransfer->b.box.z, itransfer->staging_texture, 0, &sbox); - pipe->flush(pipe, NULL); + pipe->flush(pipe, NULL, 0); pipe_resource_reference(&itransfer->staging_texture, NULL); } diff --git a/src/gallium/drivers/identity/id_context.c b/src/gallium/drivers/identity/id_context.c index 0325b151f83..d0b67ef3a97 100644 --- a/src/gallium/drivers/identity/id_context.c +++ b/src/gallium/drivers/identity/id_context.c @@ -711,13 +711,13 @@ identity_clear_depth_stencil(struct pipe_context *_pipe, static void identity_flush(struct pipe_context *_pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct identity_context *id_pipe = identity_context(_pipe); struct pipe_context *pipe = id_pipe->pipe; - pipe->flush(pipe, - fence); + pipe->flush(pipe, fence, flags); } static struct pipe_sampler_view * diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index eb454b1c41f..25b1cd06319 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -98,7 +98,8 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) static void do_flush( struct pipe_context *pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { llvmpipe_flush(pipe, fence, __FUNCTION__); } diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c index b7c73cf084d..02588d9d79c 100644 --- a/src/gallium/drivers/noop/noop_pipe.c +++ b/src/gallium/drivers/noop/noop_pipe.c @@ -242,7 +242,8 @@ static void noop_blit(struct pipe_context *ctx, * context */ static void noop_flush(struct pipe_context *ctx, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { } diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c index 31519de7a24..b0aee8d5755 100644 --- a/src/gallium/drivers/nv30/nv30_context.c +++ b/src/gallium/drivers/nv30/nv30_context.c @@ -67,7 +67,8 @@ nv30_context_kick_notify(struct nouveau_pushbuf *push) } static void -nv30_context_flush(struct pipe_context *pipe, struct pipe_fence_handle **fence) +nv30_context_flush(struct pipe_context *pipe, struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct nv30_context *nv30 = nv30_context(pipe); struct nouveau_pushbuf *push = nv30->base.pushbuf; diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c index 24ca9f478f0..08e576a214e 100644 --- a/src/gallium/drivers/nv50/nv50_context.c +++ b/src/gallium/drivers/nv50/nv50_context.c @@ -33,7 +33,8 @@ static void nv50_flush(struct pipe_context *pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct nouveau_screen *screen = nouveau_screen(pipe->screen); diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index e235fe1d4ca..6325ac859f4 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -33,7 +33,8 @@ static void nvc0_flush(struct pipe_context *pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct nvc0_context *nvc0 = nvc0_context(pipe); struct nouveau_screen *screen = &nvc0->screen->base; diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 2170c591f99..978a5d93ccf 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -133,7 +133,8 @@ void r300_flush(struct pipe_context *pipe, } static void r300_flush_wrapped(struct pipe_context *pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { r300_flush(pipe, 0, fence); } diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 83d474b04cc..e33ea13f996 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -143,7 +143,8 @@ void r600_flush(struct pipe_context *ctx, struct pipe_fence_handle **fence, } static void r600_flush_from_st(struct pipe_context *ctx, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { r600_flush(ctx, fence, 0); } diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 6eee8825161..6f32a376d70 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -158,7 +158,8 @@ void radeonsi_flush(struct pipe_context *ctx, struct pipe_fence_handle **fence, } static void r600_flush_from_st(struct pipe_context *ctx, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { radeonsi_flush(ctx, fence, 0); } diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 28f300877cf..36fa8b75f4d 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -941,14 +941,14 @@ rbug_clear_depth_stencil(struct pipe_context *_pipe, static void rbug_flush(struct pipe_context *_pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct rbug_context *rb_pipe = rbug_context(_pipe); struct pipe_context *pipe = rb_pipe->pipe; pipe_mutex_lock(rb_pipe->call_mutex); - pipe->flush(pipe, - fence); + pipe->flush(pipe, fence, flags); pipe_mutex_unlock(rb_pipe->call_mutex); } diff --git a/src/gallium/drivers/rbug/rbug_core.c b/src/gallium/drivers/rbug/rbug_core.c index 9cbc0e02f4a..0277b13b24c 100644 --- a/src/gallium/drivers/rbug/rbug_core.c +++ b/src/gallium/drivers/rbug/rbug_core.c @@ -497,7 +497,7 @@ rbug_context_flush(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32 /* protect the pipe context */ pipe_mutex_lock(rb_context->call_mutex); - rb_context->pipe->flush(rb_context->pipe, NULL); + rb_context->pipe->flush(rb_context->pipe, NULL, 0); pipe_mutex_unlock(rb_context->call_mutex); pipe_mutex_unlock(rb_screen->list_mutex); diff --git a/src/gallium/drivers/softpipe/sp_flush.c b/src/gallium/drivers/softpipe/sp_flush.c index e28236afc50..b3e291f1b7e 100644 --- a/src/gallium/drivers/softpipe/sp_flush.c +++ b/src/gallium/drivers/softpipe/sp_flush.c @@ -93,8 +93,9 @@ softpipe_flush( struct pipe_context *pipe, } void -softpipe_flush_wrapped( struct pipe_context *pipe, - struct pipe_fence_handle **fence ) +softpipe_flush_wrapped(struct pipe_context *pipe, + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { softpipe_flush(pipe, SP_FLUSH_TEXTURE_CACHE, fence); } diff --git a/src/gallium/drivers/softpipe/sp_flush.h b/src/gallium/drivers/softpipe/sp_flush.h index ab01c249abe..d406103809d 100644 --- a/src/gallium/drivers/softpipe/sp_flush.h +++ b/src/gallium/drivers/softpipe/sp_flush.h @@ -41,8 +41,9 @@ softpipe_flush(struct pipe_context *pipe, struct pipe_fence_handle **fence); void -softpipe_flush_wrapped( struct pipe_context *pipe, - struct pipe_fence_handle **fence ); +softpipe_flush_wrapped(struct pipe_context *pipe, + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags); boolean softpipe_flush_resource(struct pipe_context *pipe, diff --git a/src/gallium/drivers/svga/svga_pipe_flush.c b/src/gallium/drivers/svga/svga_pipe_flush.c index 4578c136cb8..353723df58a 100644 --- a/src/gallium/drivers/svga/svga_pipe_flush.c +++ b/src/gallium/drivers/svga/svga_pipe_flush.c @@ -32,7 +32,8 @@ static void svga_flush( struct pipe_context *pipe, - struct pipe_fence_handle **fence ) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct svga_context *svga = svga_context(pipe); diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 64d039c7389..9668aace6e1 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1284,7 +1284,8 @@ trace_context_clear_depth_stencil(struct pipe_context *_pipe, static INLINE void trace_context_flush(struct pipe_context *_pipe, - struct pipe_fence_handle **fence) + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags) { struct trace_context *tr_ctx = trace_context(_pipe); struct pipe_context *pipe = tr_ctx->pipe; @@ -1292,8 +1293,9 @@ trace_context_flush(struct pipe_context *_pipe, trace_dump_call_begin("pipe_context", "flush"); trace_dump_arg(ptr, pipe); + trace_dump_arg(uint, flags); - pipe->flush(pipe, fence); + pipe->flush(pipe, fence, flags); if(fence) trace_dump_ret(ptr, *fence); |