panvk: Directly use index buffer tracked value in JM

Let's not be confusing here.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Olivia Lee <olivia.lee@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35724>
This commit is contained in:
Mary Guillemard 2025-06-24 18:50:33 +02:00 committed by Marge Bot
parent ab0f0323e0
commit 641ad49ab2

View file

@ -53,7 +53,6 @@ struct panvk_draw_data {
} fs;
uint64_t varying_bufs;
uint64_t position;
uint64_t indices;
union {
uint64_t psiz;
float line_width;
@ -860,7 +859,8 @@ panvk_emit_tiler_primitive(struct panvk_cmd_buffer *cmdbuf,
if (draw->info.index.size) {
cfg.index_count = draw->info.vertex.count;
cfg.indices = draw->indices;
cfg.indices = cmdbuf->state.gfx.ib.dev_addr +
draw->info.index.offset * draw->info.index.size;
cfg.base_vertex_offset =
(int64_t)draw->info.vertex.base - draw->info.vertex.raw_offset;
@ -1569,8 +1569,6 @@ panvk_per_arch(CmdDrawIndexed)(VkCommandBuffer commandBuffer,
.vertex_range = vertex_range,
.padded_vertex_count =
padded_vertex_count(cmdbuf, vertex_range, instanceCount),
.indices = cmdbuf->state.gfx.ib.dev_addr +
(firstIndex * cmdbuf->state.gfx.ib.index_size),
};
panvk_cmd_draw(cmdbuf, &draw);