anv: add support for dynamic primitive topology change

Graphics / Mesa 3D Graphics Library / Mesa - Tapani Pälli [intel.com] - 2 August 2020 17:44 UTC

This is done using 3DSTATE_VF_TOPOLOGY packet that overrides topology used in subsequent 3DPRIMITIVE commands. For gen7[5] we override the pipeline topology when emitting draw commands.

v2: fix the way gen7[5] is handled (Lionel)

f6fa4a80000 anv: add support for dynamic primitive topology change
src/intel/vulkan/anv_cmd_buffer.c | 13 +++++++++++++
src/intel/vulkan/anv_pipeline.c | 18 ++++++++++++++++++
src/intel/vulkan/anv_private.h | 3 +++
src/intel/vulkan/gen7_cmd_buffer.c | 24 ++++++++++++++++++++++++
src/intel/vulkan/gen8_cmd_buffer.c | 27 +++++++++++++++++++++++++++
src/intel/vulkan/genX_cmd_buffer.c | 17 ++++++++++-------
6 files changed, 95 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share