Mesa (master): anv: Use the same re-order mode for streamout as for GS

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Apr 26 15:34:31 UTC 2021


Module: Mesa
Branch: master
Commit: 22b8bcda2c42cb6a8a9d6cc4f3aa20c8d18041b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22b8bcda2c42cb6a8a9d6cc4f3aa20c8d18041b8

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Jul 10 13:26:16 2020 -0500

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 <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10460>

---

 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 0250f53d66d..8d47fec7f98 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);



More information about the mesa-commit mailing list