From 439da38d184b5e9dddcfb245a2454879e7632649 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 30 Mar 2017 11:48:05 -0700 Subject: anv: Replace anv_bo::is_winsys_bo with a uint32_t flags Reviewed-by: Kristian H. Kristensen --- src/intel/vulkan/anv_wsi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_wsi.c') diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index 6a0203ac30e..6ab0f20b3d1 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -201,7 +201,12 @@ x11_anv_wsi_image_create(VkDevice device_h, goto fail_create_image; memory = anv_device_memory_from_handle(memory_h); - memory->bo.is_winsys_bo = true; + + /* We need to set the WRITE flag on window system buffers so that GEM will + * know we're writing to them and synchronize uses on other rings (eg if + * the display server uses the blitter ring). + */ + memory->bo.flags |= EXEC_OBJECT_WRITE; anv_BindImageMemory(device_h, image_h, memory_h, 0); -- cgit v1.2.3