Mesa (master): anv: Set 3DSTATE_VF_INSTANCING on the SVGS element

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 14 00:49:38 UTC 2020


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

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue May 12 22:31:54 2020 -0500

anv: Set 3DSTATE_VF_INSTANCING on the SVGS element

It probably doesn't matter because that buffer should have a stride of
zero.  However, it still seems like a good idea just to be safe.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5022>

---

 src/intel/vulkan/genX_pipeline.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index f3f9333cc76..e17ba6750d4 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -219,6 +219,12 @@ emit_vertex_input(struct anv_graphics_pipeline *pipeline,
 #endif
       };
       GENX(VERTEX_ELEMENT_STATE_pack)(NULL, &p[1 + id_slot * 2], &element);
+
+#if GEN_GEN >= 8
+      anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_VF_INSTANCING), vfi) {
+         vfi.VertexElementIndex = id_slot;
+      }
+#endif
    }
 
 #if GEN_GEN >= 8



More information about the mesa-commit mailing list