Correct surface format used for CL_LUMINANCE images

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2022-06-14 18:00:02 +00:00
committed by Compute-Runtime-Automation
parent 0583413499
commit 9c18c0247e
3 changed files with 20 additions and 18 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -51,10 +51,6 @@ struct Image1dArrayDefaults : public Image2dDefaults {
static const cl_image_desc imageDesc;
};
struct LuminanceImage : public Image2dDefaults {
static const cl_image_format imageFormat;
};
struct ImageWithoutHostPtr : public Image1dDefaults {
enum { flags = 0 };
static void *hostPtr;
@ -75,6 +71,10 @@ struct ImageWriteOnly : public BaseClass {
enum { flags = BaseClass::flags | CL_MEM_WRITE_ONLY };
};
struct LuminanceImage : public ImageReadOnly<Image2dDefaults> {
static const cl_image_format imageFormat;
};
template <typename Traits>
struct ImageHelper {
using Context = NEO::Context;