turnip: implement VK_KHR_shader_draw_parameters
authorJonathan Marek <jonathan@marek.ca>
Wed, 24 Jun 2020 20:00:30 +0000 (16:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 25 Jun 2020 15:57:45 +0000 (15:57 +0000)
commit62de79ac4492ac9e4af99b9a25c15cda1114e7d9
treeefd6cdd0b35e0d293511f3205e6bb726519a43d3
parent16a9e233da9a4ce64c876e2e69a8e9bb96436ff3
turnip: implement VK_KHR_shader_draw_parameters

Note: going by the blob, VFD_INDEX_OFFSET/FD_INSTANCE_START_OFFSET seem
completely unused by indirect draws, so this changes them to only be set
for non-indirect draws (and moves them to the vs_params draw state).

Passes dEQP-VK.draw.shader_draw_parameters.*

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5635>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_extensions.py
src/freedreno/vulkan/tu_private.h
src/freedreno/vulkan/tu_shader.c