<div dir="ltr">Reviewed-by: Plamena Manolova <<a href="mailto:plamena.manolova@intel.com">plamena.manolova@intel.com</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 3:24 PM, 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">It turns out Gen9LP has fewer threads per EU (6 vs 7).<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 | 5 +++--<br>
 1 file changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c b/src/intel/vulkan/anv_device.<wbr>c<br>
index 504a757571f..3f761226484 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -359,8 +359,9 @@ anv_physical_device_init(<wbr>struct anv_physical_device *device,<br>
<br>
    if (device->info.is_cherryview &&<br>
        device->subslice_total > 0 && device->eu_total > 0) {<br>
-      /* Logical CS threads = EUs per subslice * 7 threads per EU */<br>
-      uint32_t max_cs_threads = device->eu_total / device->subslice_total * 7;<br>
+      /* Logical CS threads = EUs per subslice * num threads per EU */<br>
+      uint32_t max_cs_threads =<br>
+         device->eu_total / device->subslice_total * device->info.num_thread_per_<wbr>eu;<br>
<br>
       /* Fuse configurations may give more threads than expected, never less. */<br>
       if (max_cs_threads > device->info.max_cs_threads)<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.2<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>