mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Correct surface format used for CL_LUMINANCE images
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0583413499
commit
9c18c0247e
@ -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;
|
||||
|
Reference in New Issue
Block a user