mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 13:50:25 +01:00
lavapipe: handle counterOffset in vkCmdDrawIndirectByteCountEXT
fixes dEQP-VK.transform_feedback.simple.draw_indirect*counter_offset*
cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35076>
(cherry picked from commit 42b303c7b0)
This commit is contained in:
parent
0311bc6d0e
commit
c9ff965c22
2 changed files with 2 additions and 1 deletions
|
|
@ -4804,7 +4804,7 @@
|
|||
"description": "lavapipe: handle counterOffset in vkCmdDrawIndirectByteCountEXT",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3386,6 +3386,7 @@ static void handle_draw_indirect_byte_count(struct vk_cmd_queue_entry *cmd,
|
|||
dibc->counter_buffer_offset,
|
||||
4, &draw.count);
|
||||
|
||||
draw.count -= dibc->counter_offset;
|
||||
state->info.start_instance = cmd->u.draw_indirect_byte_count_ext.first_instance;
|
||||
state->info.instance_count = cmd->u.draw_indirect_byte_count_ext.instance_count;
|
||||
state->info.index_size = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue