mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
venus: skip bind sparse info when checking for feedback query
Fix an assertion when using vkQueueBindSparse.
Fixes: 7fbf608f2d ("venus: append query feedback at submission time")
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26027>
This commit is contained in:
parent
bae7538a02
commit
f71f5cf856
1 changed files with 9 additions and 6 deletions
|
|
@ -270,12 +270,15 @@ vn_queue_submission_count_batch_feedback(struct vn_queue_submission *submit,
|
|||
}
|
||||
|
||||
bool batch_has_feedback_query = false;
|
||||
uint32_t cmd_count = vn_get_cmd_buffer_count(submit, batch_index);
|
||||
for (uint32_t i = 0; i < cmd_count; i++) {
|
||||
struct vn_command_buffer *cmd = vn_command_buffer_from_handle(
|
||||
vn_get_cmd_handle(submit, batch_index, i));
|
||||
if (!list_is_empty(&cmd->builder.query_batches))
|
||||
batch_has_feedback_query = true;
|
||||
|
||||
if (submit->batch_type != VK_STRUCTURE_TYPE_BIND_SPARSE_INFO) {
|
||||
uint32_t cmd_count = vn_get_cmd_buffer_count(submit, batch_index);
|
||||
for (uint32_t i = 0; i < cmd_count; i++) {
|
||||
struct vn_command_buffer *cmd = vn_command_buffer_from_handle(
|
||||
vn_get_cmd_handle(submit, batch_index, i));
|
||||
if (!list_is_empty(&cmd->builder.query_batches))
|
||||
batch_has_feedback_query = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (batch_has_feedback_query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue