anv: implement VK_EXT_vertex_input_dynamic_state

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21026>
This commit is contained in:
Lionel Landwerlin
2023-01-31 22:15:11 +01:00
committed by Marge Bot
parent 95e3278285
commit 9ddd296cd3
9 changed files with 53 additions and 22 deletions

View File

@@ -2533,6 +2533,7 @@ struct anv_cmd_graphics_state {
uint32_t index_type; /**< 3DSTATE_INDEX_BUFFER.IndexFormat */
uint32_t index_offset;
struct vk_vertex_input_state vertex_input;
struct vk_sample_locations_state sample_locations;
bool object_preemption;
@@ -3069,6 +3070,7 @@ struct anv_graphics_pipeline {
VkShaderStageFlags active_stages;
struct vk_vertex_input_state vertex_input;
struct vk_sample_locations_state sample_locations;
struct vk_dynamic_graphics_state dynamic_state;
@@ -3085,8 +3087,6 @@ struct anv_graphics_pipeline {
bool force_fragment_thread_dispatch;
bool uses_xfb;
uint32_t vb_used;
/* Number of VERTEX_ELEMENT_STATE input elements used by the shader */
uint32_t vs_input_elements;