From d13baacc8cb00b1f250538a81df1f6434819590f Mon Sep 17 00:00:00 2001 From: Matt Coster Date: Mon, 5 Jun 2023 16:31:14 +0100 Subject: [PATCH] pvr: Don't overwrite PDS vertex input flags Fixes: dEQP-VK.draw.renderpass.simple_draw.simple_draw_triangle_list dEQP-VK.draw.renderpass.simple_draw.simple_draw_triangle_strip dEQP-VK.draw.renderpass.indexed_draw.draw_indexed_triangle_list dEQP-VK.draw.renderpass.indexed_draw.draw_indexed_triangle_strip Signed-off-by: Matt Coster Reviewed-by: Karmjit Mahil Part-of: --- src/imagination/vulkan/pvr_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imagination/vulkan/pvr_pipeline.c b/src/imagination/vulkan/pvr_pipeline.c index e6e82bbe951..5d41067af73 100644 --- a/src/imagination/vulkan/pvr_pipeline.c +++ b/src/imagination/vulkan/pvr_pipeline.c @@ -521,14 +521,14 @@ static VkResult pvr_pds_vertex_attrib_programs_create_and_upload( if (special_vars_layout->vertex_id_offset != PVR_VERTEX_SPECIAL_VAR_UNUSED) { /* Gets filled by the HW and copied into the appropriate reg. */ - input.flags = PVR_PDS_VERTEX_FLAGS_VERTEX_ID_REQUIRED; + input.flags |= PVR_PDS_VERTEX_FLAGS_VERTEX_ID_REQUIRED; input.vertex_id_register = special_vars_layout->vertex_id_offset; } if (special_vars_layout->instance_id_offset != PVR_VERTEX_SPECIAL_VAR_UNUSED) { /* Gets filled by the HW and copied into the appropriate reg. */ - input.flags = PVR_PDS_VERTEX_FLAGS_INSTANCE_ID_REQUIRED; + input.flags |= PVR_PDS_VERTEX_FLAGS_INSTANCE_ID_REQUIRED; input.instance_id_register = special_vars_layout->instance_id_offset; } }