<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 15, 2018 at 5:44 PM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.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: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
 src/intel/vulkan/genX_<wbr>pipeline.c | 7 +++++++<br>
 1 file changed, 7 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/genX_<wbr>pipeline.c b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
index 85391c93ca..290d78e608 100644<br>
--- a/src/intel/vulkan/genX_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
@@ -1124,6 +1124,9 @@ emit_3dstate_vs(struct anv_pipeline *pipeline)<br>
       pipeline->shaders[MESA_SHADER_<wbr>VERTEX];<br>
<br>
    assert(anv_pipeline_has_stage(<wbr>pipeline, MESA_SHADER_VERTEX));<br>
+#if GEN_GEN >= 11<br>
+   assert(vs_prog_data->base.<wbr>dispatch_mode == DISPATCH_MODE_SIMD8);<br>
+#endif<br>
<br>
    anv_batch_emit(&pipeline-><wbr>batch, GENX(3DSTATE_VS), vs) {<br>
       vs.Enable               = true;<br>
@@ -1253,10 +1256,14 @@ emit_3dstate_hs_te_ds(struct anv_pipeline *pipeline,<br>
          tes_prog_data->base.base.<wbr>dispatch_grf_start_reg;<br>
<br>
 #if GEN_GEN >= 8<br>
+#if GEN_GEN < 11<br>
       ds.DispatchMode =<br>
          tes_prog_data->base.dispatch_<wbr>mode == DISPATCH_MODE_SIMD8 ?<br>
             DISPATCH_MODE_SIMD8_SINGLE_<wbr>PATCH :<br>
             DISPATCH_MODE_SIMD4X2;<br>
+#else<br></blockquote><div><br></div><div>You can just put the assert here.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+      ds.DispatchMode = DISPATCH_MODE_SIMD8_SINGLE_<wbr>PATCH;<br>
+#endif<br>
<br>
       ds.<wbr>UserClipDistanceClipTestEnable<wbr>Bitmask =<br>
          tes_prog_data->base.clip_<wbr>distance_mask;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.6<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>