mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
radv: Restore marking WSI image's mem->buffer as uncached.
Prior to4dcf32c56e, 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:
parent
ca493b5c45
commit
38ac55ebff
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue