anv: Rework setting primitive topology
authorJason Ekstrand <jason.ekstrand@collabora.com>
Thu, 14 Jul 2022 16:41:17 +0000 (11:41 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Jul 2022 23:16:45 +0000 (23:16 +0000)
commit97dd1a100d4dacdc0897619a37194f83f32c9cfc
treeda3bc6399ecb58739b1013176040dabdd9785669
parentb656957c563bb3e704617bc6513f8ed4bd190c49
anv: Rework setting primitive topology

For one thing, we were deceptively setting it wrong in genX_cmd_buffer.c
and then overwriting it in each of of gfx7_cmd_buffer.c and
gfx8_cmd_buffer.c.  Pull it all into genX_cmd_buffer.c so it's no longer
duplicated.  Also, stop doing the PATCHLIST conversion in anv_pipeline.c
and just store the number of patch vertices.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17564>
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/gfx7_cmd_buffer.c
src/intel/vulkan/gfx8_cmd_buffer.c