From 12aeb47b6af4b3100da26b3ab72ef93886479219 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 21 Dec 2012 17:15:56 +0100 Subject: gallium/radeon: send the END_OF_FRAME flag to the DRM --- src/gallium/drivers/r300/r300_flush.c | 4 +++- src/gallium/drivers/r600/r600_pipe.c | 3 ++- src/gallium/drivers/radeonsi/radeonsi_pipe.c | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 978a5d93ccf..6d51ee5d528 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -136,7 +136,9 @@ static void r300_flush_wrapped(struct pipe_context *pipe, struct pipe_fence_handle **fence, enum pipe_flush_flags flags) { - r300_flush(pipe, 0, fence); + r300_flush(pipe, + flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0, + fence); } void r300_init_flush_functions(struct r300_context* r300) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index e33ea13f996..f6db3bf9699 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -146,7 +146,8 @@ static void r600_flush_from_st(struct pipe_context *ctx, struct pipe_fence_handle **fence, enum pipe_flush_flags flags) { - r600_flush(ctx, fence, 0); + r600_flush(ctx, fence, + flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0); } static void r600_flush_from_winsys(void *ctx, unsigned flags) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 6f32a376d70..d66e30f9995 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -161,7 +161,8 @@ static void r600_flush_from_st(struct pipe_context *ctx, struct pipe_fence_handle **fence, enum pipe_flush_flags flags) { - radeonsi_flush(ctx, fence, 0); + radeonsi_flush(ctx, fence, + flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0); } static void r600_flush_from_winsys(void *ctx, unsigned flags) -- cgit v1.2.3