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: 4dcf32c56e ("wsi/drm: Don't request implicit sync if we're doing implicit sync ourselves.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37772>
This commit is contained in:
Emma Anholt 2025-10-08 09:56:40 -07:00 committed by Marge Bot
parent ca493b5c45
commit 38ac55ebff

View file

@ -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.