From 22b8bcda2c42cb6a8a9d6cc4f3aa20c8d18041b8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 10 Jul 2020 13:26:16 -0500 Subject: [PATCH] anv: Use the same re-order mode for streamout as for GS This makes the vertex order of TRISTRIP and TRISTRIP_ADJ primitves consistent between XFB output and GS input. Technically, the Vulkan spec allows us to XFB out in whatever order we want but being consistent with GS inputs is probably nicer to apps. Fixes: 36ee2fd61c8 "anv: Implement the basic form of VK_EXT_transform_feedback" Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 0250f53..8d47fec 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1443,6 +1443,7 @@ emit_3dstate_streamout(struct anv_graphics_pipeline *pipeline, if (xfb_info) { so.SOFunctionEnable = true; so.SOStatisticsEnable = true; + so.ReorderMode = TRAILING; const VkPipelineRasterizationStateStreamCreateInfoEXT *stream_info = vk_find_struct_const(rs_info, PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT); -- 2.7.4