[Piglit] [PATCH 1/1] cl: Enable required extension before using double type
Tom Stellard
tom at stellard.net
Mon Mar 30 06:19:41 PDT 2015
On Fri, Mar 27, 2015 at 07:36:26PM -0400, Jan Vesely wrote:
> Fixes failures on OCL-1.1 implementations that provide cl_khr_fp64
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> ---
> generated_tests/cl/store/store-kernels-global.inc | 4 ++--
> generated_tests/cl/store/store-kernels-local.inc | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/generated_tests/cl/store/store-kernels-global.inc b/generated_tests/cl/store/store-kernels-global.inc
> index b6220d0..ae9b74e 100644
> --- a/generated_tests/cl/store/store-kernels-global.inc
> +++ b/generated_tests/cl/store/store-kernels-global.inc
> @@ -1,9 +1,9 @@
> -typedef TYPE type_t;
> -
> #if TYPE == double
> #pragma OPENCL EXTENSION cl_khr_fp64 : enable
> #endif
>
> +typedef TYPE type_t;
> +
> kernel void store_global(global type_t *out, global type_t *in) {
> out[0] = in[0];
> out[1] = in[1];
> diff --git a/generated_tests/cl/store/store-kernels-local.inc b/generated_tests/cl/store/store-kernels-local.inc
> index b3265f4..6692e37 100644
> --- a/generated_tests/cl/store/store-kernels-local.inc
> +++ b/generated_tests/cl/store/store-kernels-local.inc
> @@ -1,9 +1,9 @@
> -typedef TYPE type_t;
> -
> #if TYPE == double
> #pragma OPENCL EXTENSION cl_khr_fp64 : enable
> #endif
>
> +typedef TYPE type_t;
> +
> 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);
> --
> 2.1.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list