[01/12] Runtime: Fix thread id calculation.

Submitted by Pan Xiuli on May 26, 2016, 3:14 a.m.

Details

Message ID 1464232467-16231-1-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Pan Xiuli May 26, 2016, 3:14 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

Sould use curr with simd_sz to get thread simd_sz

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

Patch hide | download patch | download mbox

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 */