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

Aaron Watry awatry at gmail.com
Tue Oct 15 00:18:46 CEST 2013


On Mon, Sep 30, 2013 at 9:47 AM, Tom Stellard <tom at stellard.net> wrote:
> 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),

This looks right to me.

--Aaron

>                                                            test_arg.value);
>                         break;
>                 case TEST_ARG_BUFFER: {
> --
> 1.7.11.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list