[Mesa-dev] [PATCH 16/17] radeonsi: implement pipe transition_resource callback

Andres Rodriguez andresx7 at gmail.com
Thu Nov 2 03:57:19 UTC 2017


Signed-off-by: Andres Rodriguez <andresx7 at gmail.com>
---
 src/gallium/drivers/radeonsi/si_blit.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
index abf25b6..d28eef2 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -1471,6 +1471,16 @@ static void si_flush_resource(struct pipe_context *ctx,
 	}
 }
 
+static void si_transition_resource(struct pipe_context *ctx,
+				   struct pipe_resource *res,
+				   enum pipe_layout layout)
+{
+	/**
+	 * Radeonsi/RADV use a compatible layout for all
+	 * exported resources.
+	 */
+}
+
 static void si_decompress_dcc(struct pipe_context *ctx,
 			      struct r600_texture *rtex)
 {
@@ -1552,6 +1562,7 @@ void si_init_blit_functions(struct si_context *sctx)
 	sctx->b.b.blit = si_blit;
 	sctx->b.b.flush_resource = si_flush_resource;
 	sctx->b.b.generate_mipmap = si_generate_mipmap;
+	sctx->b.b.transition_resource = si_transition_resource;
 	sctx->b.blit_decompress_depth = si_blit_decompress_depth;
 	sctx->b.decompress_dcc = si_decompress_dcc;
 }
-- 
2.9.3



More information about the mesa-dev mailing list