mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
venus: update sfb cmd lookup to follow ffb
Now sfb cmd can be VK_NULL_HANDLE on incompatible queues. Avoid passing that to set cmd, and explicitly assert below. Test: dEQP-VK.synchronization2.basic.timeline_semaphore.multi_queue can properly assert on the driver side when assert is enabled. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38049>
This commit is contained in:
parent
2c08e6d8bb
commit
b187c1ab92
1 changed files with 6 additions and 3 deletions
|
|
@ -724,14 +724,17 @@ vn_queue_submission_add_semaphore_feedback(struct vn_queue_submission *submit,
|
|||
vn_get_signal_semaphore_counter(submit, batch_index, signal_index);
|
||||
vn_feedback_set_counter(sfb_cmd->src_slot, counter);
|
||||
|
||||
VkCommandBuffer sfb_cmd_handle = VK_NULL_HANDLE;
|
||||
for (uint32_t i = 0; i < dev->queue_family_count; i++) {
|
||||
if (dev->queue_families[i] == queue_vk->queue_family_index) {
|
||||
vn_set_temp_cmd(submit, (*new_cmd_count)++, sfb_cmd->cmd_handles[i]);
|
||||
return VK_SUCCESS;
|
||||
sfb_cmd_handle = sfb_cmd->cmd_handles[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
assert(sfb_cmd_handle != VK_NULL_HANDLE);
|
||||
|
||||
UNREACHABLE("bad feedback sem");
|
||||
vn_set_temp_cmd(submit, (*new_cmd_count)++, sfb_cmd_handle);
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue