<p dir="ltr">Rb</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 11, 2016 5:17 PM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">pViewportState may be NULL if rasterization is disabled.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
 src/intel/vulkan/genX_<wbr>pipeline_util.h | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/genX_<wbr>pipeline_util.h b/src/intel/vulkan/genX_<wbr>pipeline_util.h<br>
index 0ff92f1..b5142ac 100644<br>
--- a/src/intel/vulkan/genX_<wbr>pipeline_util.h<br>
+++ b/src/intel/vulkan/genX_<wbr>pipeline_util.h<br>
@@ -948,7 +948,7 @@ emit_3dstate_clip(struct anv_pipeline *pipeline,<br>
<br>
       clip.MinimumPointWidth = 0.125;<br>
       clip.MaximumPointWidth = 255.875;<br>
-      clip.MaximumVPIndex    = vp_info->viewportCount - 1;<br>
+      clip.MaximumVPIndex    = (vp_info ? vp_info->viewportCount : 1) - 1;<br>
<br>
 #if GEN_GEN == 7<br>
       clip.FrontWinding            = vk_to_gen_front_face[rs_info-><wbr>frontFace];<br>
--<br>
2.10.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>
</blockquote></div></div>