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: 36ee2fd61c "anv: Implement the basic form of VK_EXT_transform_feedback"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10460>
This commit is contained in:
Jason Ekstrand
2020-07-10 13:26:16 -05:00
committed by Marge Bot
parent ecac7f3da1
commit 22b8bcda2c

View File

@@ -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);