From a1c84842710268793c4a8de3cad8db95b6f37a82 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 1 Jan 2017 23:42:17 -0500 Subject: gallium: add flags parameter to texture barrier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is so that we can differentiate between flushing any framebuffer reading caches from regular sampler caches. Signed-off-by: Ilia Mirkin Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/softpipe/sp_flush.c | 4 ++-- src/gallium/drivers/softpipe/sp_flush.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/softpipe') diff --git a/src/gallium/drivers/softpipe/sp_flush.c b/src/gallium/drivers/softpipe/sp_flush.c index 656d8a3257a..3bf8c499218 100644 --- a/src/gallium/drivers/softpipe/sp_flush.c +++ b/src/gallium/drivers/softpipe/sp_flush.c @@ -169,7 +169,7 @@ softpipe_flush_resource(struct pipe_context *pipe, return TRUE; } -void softpipe_texture_barrier(struct pipe_context *pipe) +void softpipe_texture_barrier(struct pipe_context *pipe, unsigned flags) { struct softpipe_context *softpipe = softpipe_context(pipe); uint i, sh; @@ -192,5 +192,5 @@ void softpipe_texture_barrier(struct pipe_context *pipe) void softpipe_memory_barrier(struct pipe_context *pipe, unsigned flags) { - softpipe_texture_barrier(pipe); + softpipe_texture_barrier(pipe, 0); } diff --git a/src/gallium/drivers/softpipe/sp_flush.h b/src/gallium/drivers/softpipe/sp_flush.h index 0674b4a7e48..abbc098657c 100644 --- a/src/gallium/drivers/softpipe/sp_flush.h +++ b/src/gallium/drivers/softpipe/sp_flush.h @@ -55,6 +55,6 @@ softpipe_flush_resource(struct pipe_context *pipe, boolean cpu_access, boolean do_not_block); -void softpipe_texture_barrier(struct pipe_context *pipe); +void softpipe_texture_barrier(struct pipe_context *pipe, unsigned flags); void softpipe_memory_barrier(struct pipe_context *pipe, unsigned flags); #endif -- cgit v1.2.3