mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
radv/sqtt: Ensure that present fence gets signalled.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Fixes: 88cbe32048 ("radv: add support for RGP queue events")
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37438>
This commit is contained in:
parent
0908694f02
commit
3bc81ee6f1
1 changed files with 6 additions and 1 deletions
|
|
@ -717,13 +717,18 @@ radv_sqtt_wsi_submit(VkQueue _queue, uint32_t submitCount, const VkSubmitInfo2 *
|
|||
|
||||
radv_describe_queue_present(queue, cpu_timestamp, gpu_timestamp_ptr);
|
||||
|
||||
result = device->layer_dispatch.rgp.QueueSubmit2(_queue, 1, &sqtt_submit, _fence);
|
||||
result = device->layer_dispatch.rgp.QueueSubmit2(_queue, 1, &sqtt_submit,
|
||||
i + 1 == submitCount ? _fence : VK_NULL_HANDLE);
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
FREE(new_cmdbufs);
|
||||
}
|
||||
|
||||
if (submitCount == 0 && _fence != VK_NULL_HANDLE)
|
||||
result = device->layer_dispatch.rgp.QueueSubmit2(_queue, 0, NULL, _fence);
|
||||
|
||||
return result;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue