v3dv: vertex input support

Graphics / Mesa 3D Graphics Library / Mesa - Alejandro Piñeiro [igalia.com] - 13 October 2020 21:21 UTC

This includes:

- Implementation for CmdBindVertexBuffers

- Gather vertex input info during CreateGraphicsPipelines (pipeline_init) and SHADER_STATE_ATTRIBUTE_RECORD prepacking

- Final emission of such packet during CmdDraw (cmd_buffer_emit_graphics_pipeline)

Default attributes values will be handled on a following patch.

Part-of:

aad44cc614c v3dv: vertex input support
src/broadcom/vulkan/v3dv_cmd_buffer.c | 87 +++++++++++++++++++------
src/broadcom/vulkan/v3dv_device.c | 5 +-
src/broadcom/vulkan/v3dv_pipeline.c | 116 ++++++++++++++++++++++++++++++++++
src/broadcom/vulkan/v3dv_private.h | 39 ++++++++++++
4 files changed, 226 insertions(+), 21 deletions(-)

Upstream: cgit.freedesktop.org


  • Share