From: Marek Olšák Date: Tue, 4 Jul 2017 15:26:31 +0000 (+0200) Subject: gallium/radeon: flush the context after in-place texture realloc before export X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b555854cc2c36e16e1ce3e5e81c09c869ec3531;p=mesa.git gallium/radeon: flush the context after in-place texture realloc before export Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 2deb56af661..f5f7d1030c8 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); }