From: Pan Xiuli <xiuli....@intel.com>

Sould use curr with simd_sz to get thread simd_sz

Signed-off-by: Pan Xiuli <xiuli....@intel.com>
---
 src/cl_command_queue_gen7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cl_command_queue_gen7.c b/src/cl_command_queue_gen7.c
index 4caa7e7..6a9cf1f 100644
--- a/src/cl_command_queue_gen7.c
+++ b/src/cl_command_queue_gen7.c
@@ -89,7 +89,7 @@ cl_set_varying_payload(const cl_kernel ker,
       ids[2][curr] = k;
     block_ips[curr] = 0;
     if (thread_ids)
-      thread_ids[curr/simd_sz] = (k*local_wk_sz[2] + j*local_wk_sz[1] + 
i)/simd_sz;
+      thread_ids[curr/simd_sz] = curr/simd_sz;
   }
 
   /* Copy them to the curbe buffer */
-- 
2.7.4

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to