radv: disable unordered submits when SQTT queue events are enabled

Otherwise the QueuePresent event is missing and RGP is confused.

Fixes: 82d06b58ad ("radv: use vk_drm_syncobj_copy_payloads")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39158>
(cherry picked from commit 83ca338e37)
This commit is contained in:
Samuel Pitoiset 2026-01-05 13:01:02 +01:00 committed by Eric Engestrom
parent a7d0da012e
commit 870140c527
2 changed files with 8 additions and 2 deletions

View file

@ -34,7 +34,7 @@
"description": "radv: disable unordered submits when SQTT queue events are enabled",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "82d06b58add3932e21f58f975c1f5a7cddcbd6cc",
"notes": null

View file

@ -1241,7 +1241,13 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
device->ws = pdev->ws;
device->vk.sync = device->ws->get_sync_provider(device->ws);
device->vk.copy_sync_payloads = pdev->ws->copy_sync_payloads;
/* Disable unordered submits when SQTT queue events are enabled because queue present events
* might be missing otherwise.
*/
device->vk.copy_sync_payloads = ((instance->vk.trace_mode & RADV_TRACE_MODE_RGP) && radv_sqtt_queue_events_enabled())
? NULL
: pdev->ws->copy_sync_payloads;
/* Enable the global BO list by default. */
/* TODO: Remove the per cmdbuf BO list tracking after few Mesa releases if no blockers. */