mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
turnip: Don't bother clamping VB size.
From the VK spec: "All elements of pOffsets must be less than the size of the corresponding element in pBuffers" Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5321>
This commit is contained in:
parent
52942f18c6
commit
5c9728d960
1 changed files with 1 additions and 3 deletions
|
|
@ -2675,12 +2675,10 @@ tu6_emit_vertex_buffers(struct tu_cmd_buffer *cmd,
|
|||
const struct tu_buffer *buf = cmd->state.vb.buffers[binding];
|
||||
const VkDeviceSize offset = buf->bo_offset +
|
||||
cmd->state.vb.offsets[binding];
|
||||
const VkDeviceSize size =
|
||||
offset < buf->size ? buf->size - offset : 0;
|
||||
|
||||
tu_cs_emit_regs(&cs,
|
||||
A6XX_VFD_FETCH_BASE(i, .bo = buf->bo, .bo_offset = offset),
|
||||
A6XX_VFD_FETCH_SIZE(i, size));
|
||||
A6XX_VFD_FETCH_SIZE(i, buf->size - offset));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue