[Piglit] [PATCH] cl: Fix bug in the local store kernel

Tom Stellard tom at stellard.net
Fri Aug 16 09:22:10 PDT 2013


From: Tom Stellard <thomas.stellard at amd.com>

---
 generated_tests/cl/store/store-kernels-local.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generated_tests/cl/store/store-kernels-local.inc b/generated_tests/cl/store/store-kernels-local.inc
index 7d70d13..b3265f4 100644
--- a/generated_tests/cl/store/store-kernels-local.inc
+++ b/generated_tests/cl/store/store-kernels-local.inc
@@ -8,7 +8,7 @@ kernel void store_local(global type_t *out, global type_t *in) {
 	local type_t local_data[8];
 	size_t id = get_local_id(0);
 	size_t store_index = (id + 1) % 8;
-	local_data[store_index] = store_index;
+	local_data[store_index] = in[store_index];
 	barrier(CLK_LOCAL_MEM_FENCE);
 	out[id] = local_data[id];
 }
-- 
1.7.11.4



More information about the Piglit mailing list