[Piglit] [PATCH 1/1] cl: Add scalar to constant load test

Tom Stellard tom at stellard.net
Wed Jan 27 13:30:16 PST 2016


On Fri, Jan 15, 2016 at 05:37:42PM -0500, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

> ---
>  tests/cl/program/execute/constant-load.cl | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/cl/program/execute/constant-load.cl b/tests/cl/program/execute/constant-load.cl
> index 307ba68..ae1ebcd 100644
> --- a/tests/cl/program/execute/constant-load.cl
> +++ b/tests/cl/program/execute/constant-load.cl
> @@ -2,19 +2,29 @@
>  [config]
>  
>  [test]
> +kernel_name: constant_load_global_store_1
> +name: constant load global write int
> +arg_out: 0 buffer int[1] 1
> +arg_in:  1 buffer int[1] 1
> +
> +[test]
>  kernel_name: constant_load_global_store_2
>  name: constant load global write int2
> -arg_out: 0 buffer int2[1] 1 2
> -arg_in:  1 buffer int2[1] 1 2
> +arg_out: 0 buffer int2[1] 2 3
> +arg_in:  1 buffer int2[1] 2 3
>  
>  [test]
>  kernel_name: constant_load_global_store_4
>  name: constant load global write int4
> -arg_out: 0 buffer int4[1] 1 2 3 4
> -arg_in:  1 buffer int4[1] 1 2 3 4
> +arg_out: 0 buffer int4[1] 4 5 6 7
> +arg_in:  1 buffer int4[1] 4 5 6 7
>  
>  !*/
>  
> +kernel void constant_load_global_store_1(global int2 *out, constant int *in){
> +    out[0] = *in;
> +}
> +
>  kernel void constant_load_global_store_2(global int2 *out, constant int2 *in){
>      out[0] = *in;
>  }
> -- 
> 2.5.0
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list