aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-07-04 17:26:31 +0200
committerMarek Olšák <[email protected]>2017-07-17 10:50:39 -0400
commit5b555854cc2c36e16e1ce3e5e81c09c869ec3531 (patch)
treea3af0af4b9b5f9db58baa1ed33eb4133cb9e76b0 /src/gallium/drivers
parent63dcfed81f011dae5ca68af3369433be28135415 (diff)
gallium/radeon: flush the context after in-place texture realloc before export
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c1
1 files changed, 1 insertions, 0 deletions
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);
}