<div dir="ltr">Is there something we need to do here to plumb gl_DrawId through correctly? I'm pretty sure we have exactly zero code for that.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 10:55 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">Enables 10 tests from:<br>
<br>
dEQP-VK.draw.shader_draw_<wbr>parameters.*<br>
<br>
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/anv_device.c | 4 ++++<br>
src/intel/vulkan/anv_pipeline.<wbr>c | 1 +<br>
2 files changed, 5 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c b/src/intel/vulkan/anv_device.<wbr>c<br>
index b24949c5f4..115f011705 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -268,6 +268,10 @@ static const VkExtensionProperties device_extensions[] = {<br>
.extensionName = VK_KHR_MAINTENANCE1_EXTENSION_<wbr>NAME,<br>
.specVersion = 1,<br>
},<br>
+ {<br>
+ .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_<wbr>EXTENSION_NAME,<br>
+ .specVersion = 1,<br>
+ }<br>
};<br>
<br>
static void *<br>
diff --git a/src/intel/vulkan/anv_<wbr>pipeline.c b/src/intel/vulkan/anv_<wbr>pipeline.c<br>
index 2060c6d2f6..ca3823c2b6 100644<br>
--- a/src/intel/vulkan/anv_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/anv_<wbr>pipeline.c<br>
@@ -127,6 +127,7 @@ anv_shader_compile_to_nir(<wbr>struct anv_device *device,<br>
const struct nir_spirv_supported_extensions supported_ext = {<br>
.float64 = device->instance-><wbr>physicalDevice.info.gen >= 8,<br>
.tessellation = true,<br>
+ .draw_parameters = true,<br>
};<br>
<br>
nir_function *entry_point =<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>