diff options
author | Marek Olšák <[email protected]> | 2014-04-12 17:57:32 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-04-16 14:02:52 +0200 |
commit | adfadeadd8316e95626fec4771393d32a70af649 (patch) | |
tree | 0f35d96cf6882b6701f1cff5b6a4fdf53ca7af78 /src/gallium/drivers/radeonsi | |
parent | 586011486dba1c977d8f9aeb8f95b14e891afcbb (diff) |
r600g,radeonsi: share r600_flush_from_st
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 7f3b0c22198..a1aea7b3db3 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -33,22 +33,6 @@ /* * pipe_context */ -static void si_flush_from_st(struct pipe_context *ctx, - struct pipe_fence_handle **fence, - unsigned flags) -{ - struct si_context *sctx = (struct si_context *)ctx; - unsigned rflags = 0; - - if (flags & PIPE_FLUSH_END_OF_FRAME) - rflags |= RADEON_FLUSH_END_OF_FRAME; - - if (sctx->b.rings.dma.cs) { - sctx->b.rings.dma.flush(sctx, rflags, NULL); - } - sctx->b.rings.gfx.flush(sctx, rflags, fence); -} - static void si_destroy_context(struct pipe_context *context) { struct si_context *sctx = (struct si_context *)context; @@ -97,7 +81,6 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, void * sctx->b.b.screen = screen; /* this must be set first */ sctx->b.b.priv = priv; sctx->b.b.destroy = si_destroy_context; - sctx->b.b.flush = si_flush_from_st; sctx->screen = sscreen; /* Easy accessing of screen/winsys. */ if (!r600_common_context_init(&sctx->b, &sscreen->b)) |