v3dv: implement vkCmdBindIndexBuffer2KHR

This is added with VK_KHR_maintenance5. It adds a size parameter
to track the size of the index buffer data bound.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29425>
This commit is contained in:
Iago Toral Quiroga
2024-05-28 08:30:31 +02:00
parent e00da33474
commit 9912c734e9
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -2747,7 +2747,7 @@ v3dX(cmd_buffer_emit_index_buffer)(struct v3dv_cmd_buffer *cmd_buffer)
assert(ibuffer->mem->bo->size >= offset);
cl_emit(&job->bcl, INDEX_BUFFER_SETUP, ib) {
ib.address = v3dv_cl_address(ibuffer->mem->bo, offset);
ib.size = ibuffer->mem->bo->size - offset;
ib.size = cmd_buffer->state.index_buffer.size;
}
}