From 38ac55ebff31f466e4209f086c34e360192fb180 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 8 Oct 2025 09:56:40 -0700 Subject: [PATCH] radv: Restore marking WSI image's mem->buffer as uncached. Prior to 4dcf32c56e, radv was getting a request for implicit sync, even when we were doing the work to do implicit sync in the WSI. Once that was turned off, we incidentally dropped flagging WSI's mem->buffer as uncached, due to it being under the wrong condition. Fixes: 4dcf32c56e7b ("wsi/drm: Don't request implicit sync if we're doing implicit sync ourselves.") Part-of: --- src/amd/vulkan/radv_device_memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device_memory.c b/src/amd/vulkan/radv_device_memory.c index 41440781cb6..c964b5cee64 100644 --- a/src/amd/vulkan/radv_device_memory.c +++ b/src/amd/vulkan/radv_device_memory.c @@ -120,8 +120,9 @@ radv_alloc_memory(struct radv_device *device, const VkMemoryAllocateInfo *pAlloc mem->buffer = NULL; } - if (wsi_info && wsi_info->implicit_sync) { - flags |= RADEON_FLAG_IMPLICIT_SYNC; + if (wsi_info) { + if (wsi_info->implicit_sync) + flags |= RADEON_FLAG_IMPLICIT_SYNC; /* Mark the linear prime buffer (aka the destination of the prime blit * as uncached.