[Piglit] [PATCH 5/7] cl-progam-tester: Pass correct size to piglit_cl_set_kernel_arg()

Tom Stellard tom at stellard.net
Mon Sep 30 07:47:44 PDT 2013


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

---
 tests/cl/program/program-tester.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index ea16c81..557dc4b 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -1731,7 +1731,7 @@ test_kernel(const struct piglit_cl_program_test_config* config,
 		case TEST_ARG_VALUE:
 			arg_set = piglit_cl_set_kernel_arg(kernel,
 			                                   test_arg.index,
-			                                   test_arg.size_in_mem,
+							   test_arg.vec_elements * piglit_cl_type_get_size(test_arg.cl_type),
 			                                   test_arg.value);
 			break;
 		case TEST_ARG_BUFFER: {
-- 
1.7.11.4



More information about the Piglit mailing list