mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
anv: fix generated draws gl_DrawID with more than 8192 indirect draws
This applies only to Gfx9.
We're writting out of bounds to a wrong location.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 1d9cf8f381 ("anv: add gfx9 generated draw support")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Tested-by: Felix DeGrood <felix.j.degrood@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25361>
This commit is contained in:
parent
8aadd4745c
commit
8ab3c03a32
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ void main()
|
|||
}
|
||||
if (uses_drawid) {
|
||||
uint64_t draw_idx_addr = draw_id_addr + 4 * item_idx;
|
||||
draw_ids[draw_id] = draw_id;
|
||||
draw_ids[item_idx] = draw_id;
|
||||
write_VERTEX_BUFFER_STATE(cmd_idx,
|
||||
mocs,
|
||||
32,
|
||||
|
|
@ -117,7 +117,7 @@ void main()
|
|||
}
|
||||
if (uses_drawid) {
|
||||
uint64_t draw_idx_addr = draw_id_addr + 4 * item_idx;
|
||||
draw_ids[draw_id] = draw_id;
|
||||
draw_ids[item_idx] = draw_id;
|
||||
write_VERTEX_BUFFER_STATE(cmd_idx,
|
||||
mocs,
|
||||
32,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue