gallium/radeon: flush the context after in-place texture realloc before export
authorMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jul 2017 15:26:31 +0000 (17:26 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jul 2017 14:50:39 +0000 (10:50 -0400)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 2deb56af661d8d2d3c45304439673721a96f4ff0..f5f7d1030c8d68299db40cc0fa61235fc5bf5045 100644 (file)
@@ -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);
                }