v3dv: implement indirect compute dispatch

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 13 October 2020 21:21 UTC

The hardware can't do this, so we need to record a CPU job that will map the indirect buffer at queue submission time, read the dispatch parameters and then submit a regular dispatch.

Part-of:

b356d3de8cf v3dv: implement indirect compute dispatch
src/broadcom/vulkan/v3dv_cmd_buffer.c | 200 +++++++++++++++++++++++++++-------
src/broadcom/vulkan/v3dv_private.h | 19 +++-
src/broadcom/vulkan/v3dv_queue.c | 43 ++++++++
src/broadcom/vulkan/v3dv_uniforms.c | 18 ++-
4 files changed, 234 insertions(+), 46 deletions(-)

Upstream: cgit.freedesktop.org


  • Share