summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-04-12 17:57:32 +0200
committerMarek Olšák <[email protected]>2014-04-16 14:02:52 +0200
commitadfadeadd8316e95626fec4771393d32a70af649 (patch)
tree0f35d96cf6882b6701f1cff5b6a4fdf53ca7af78 /src/gallium/drivers/r600/r600_pipe.c
parent586011486dba1c977d8f9aeb8f95b14e891afcbb (diff)
r600g,radeonsi: share r600_flush_from_st
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 983c65a26a6..3797b56b2f8 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -66,22 +66,6 @@ static const struct debug_named_value r600_debug_options[] = {
* pipe_context
*/
-static void r600_flush_from_st(struct pipe_context *ctx,
- struct pipe_fence_handle **fence,
- unsigned flags)
-{
- struct r600_context *rctx = (struct r600_context *)ctx;
- unsigned fflags;
-
- fflags = flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0;
-
- /* flush gfx & dma ring, order does not matter as only one can be live */
- if (rctx->b.rings.dma.cs) {
- rctx->b.rings.dma.flush(rctx, fflags, NULL);
- }
- rctx->b.rings.gfx.flush(rctx, fflags, fence);
-}
-
static void r600_destroy_context(struct pipe_context *context)
{
struct r600_context *rctx = (struct r600_context *)context;
@@ -137,7 +121,6 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
rctx->b.b.screen = screen;
rctx->b.b.priv = priv;
rctx->b.b.destroy = r600_destroy_context;
- rctx->b.b.flush = r600_flush_from_st;
if (!r600_common_context_init(&rctx->b, &rscreen->b))
goto fail;