<div dir="ltr"><div>Vulkan only supports gen7+.  Go ahead and drop the checks.  With that,<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 11:32 AM, Rafael Antognolli <span dir="ltr"><<a href="mailto:rafael.antognolli@intel.com" target="_blank">rafael.antognolli@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Emit it on all platforms since gen7.<br>
<br>
Signed-off-by: Rafael Antognolli <<a href="mailto:rafael.antognolli@intel.com">rafael.antognolli@intel.com</a>><br>
---<br>
 src/intel/vulkan/genX_cmd_<wbr>buffer.c | 4 ++--<br>
 1 file 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 3691b4bdec9..0e8c9ee7c46 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -975,7 +975,7 @@ genX(BeginCommandBuffer)(<br>
     * emit push constants again before any rendering operation. So we<br>
     * flag them dirty here to make sure they get emitted.<br>
     */<br>
-   if (GEN_GEN == 10)<br>
+   if (GEN_GEN >= 7)<br>
       cmd_buffer->state.push_<wbr>constants_dirty |= VK_SHADER_STAGE_ALL_GRAPHICS;<br>
<br>
    VkResult result = VK_SUCCESS;<br>
@@ -1074,7 +1074,7 @@ genX(EndCommandBuffer)(<br>
<br>
    genX(cmd_buffer_apply_pipe_<wbr>flushes)(cmd_buffer);<br>
<br>
-   if (GEN_GEN == 10)<br>
+   if (GEN_GEN >= 7)<br>
       emit_isp_disable(cmd_buffer);<br>
<br>
    anv_cmd_buffer_end_batch_<wbr>buffer(cmd_buffer);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.3<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>