[16/17] radeonsi: implement pipe transition_resource callback

Submitted by Andres Rodriguez on Nov. 2, 2017, 3:57 a.m.

Details

Message ID 20171102035720.6839-17-andresx7@gmail.com
State New
Headers show
Series "Add support for GL_EXT_semaphore" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Andres Rodriguez Nov. 2, 2017, 3:57 a.m.
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
---
 src/gallium/drivers/radeonsi/si_blit.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

Patch hide | download patch | download mbox

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;
 }