Mesa (master): gallium/radeon: flush the context after in-place texture realloc before export

Marek Olšák mareko at kemper.freedesktop.org
Mon Jul 17 14:52:04 UTC 2017


Module: Mesa
Branch: master
Commit: 5b555854cc2c36e16e1ce3e5e81c09c869ec3531
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b555854cc2c36e16e1ce3e5e81c09c869ec3531

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Jul  4 17:26:31 2017 +0200

gallium/radeon: flush the context after in-place texture realloc before export

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeon/r600_texture.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 2deb56af66..f5f7d1030c 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -570,6 +570,7 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
 			assert(!res->b.is_shared);
 			r600_reallocate_texture_inplace(rctx, rtex,
 							PIPE_BIND_SHARED, false);
+			rctx->b.flush(&rctx->b, NULL, 0);
 			assert(res->b.b.bind & PIPE_BIND_SHARED);
 			assert(res->flags & RADEON_FLAG_NO_SUBALLOC);
 		}




More information about the mesa-commit mailing list