<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin <span dir="ltr"><<a href="mailto:lionel.g.landwerlin@intel.com" target="_blank">lionel.g.landwerlin@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com">lionel.g.landwerlin@intel.com</a><wbr>><br>
---<br>
 src/intel/vulkan/genX_cmd_<wbr>buffer.c | 2 +-<br>
 src/intel/vulkan/genX_<wbr>pipeline.c   | 2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index f7894a0574..91b97abec6 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -1593,7 +1593,7 @@ emit_base_vertex_instance_bo(<wbr>struct anv_cmd_buffer *cmd_buffer,<br>
<br>
    GENX(VERTEX_BUFFER_STATE_pack)<wbr>(&cmd_buffer->batch, p + 1,<br>
       &(struct GENX(VERTEX_BUFFER_STATE)) {<br>
-         .VertexBufferIndex = 32, /* Reserved for this */<br>
+         .VertexBufferIndex = 31, /* Reserved for this */<br></blockquote><div><br></div><div>Maybe we should have<br><br></div><div>#define ANV_SVGS_VB_INDEX (MAX_VBS - 2)<br></div><div>#define ANV_DRAWID_VB_INDEX (MAX_VBS - 1)<br></div><div><br></div><div>and use the #define.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          .AddressModifyEnable = true,<br>
          .BufferPitch = 0,<br>
 #if (GEN_GEN >= 8)<br>
diff --git a/src/intel/vulkan/genX_<wbr>pipeline.c b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
index d3a9d4302e..9629ca9bf9 100644<br>
--- a/src/intel/vulkan/genX_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
@@ -187,7 +187,7 @@ emit_vertex_input(struct anv_pipeline *pipeline,<br>
                            VFCOMP_STORE_SRC : VFCOMP_STORE_0;<br>
<br>
       struct GENX(VERTEX_ELEMENT_STATE) element = {<br>
-         .VertexBufferIndex = 32, /* Reserved for this */<br>
+         .VertexBufferIndex = 31, /* Reserved for this */<br>
          .Valid = true,<br>
          .SourceElementFormat = ISL_FORMAT_R32G32_UINT,<br>
          .Component0Control = base_ctrl,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>