Skip to content

Commit 4e1eb97

Browse files
Add channels for Y210 format
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
1 parent 7b817b2 commit 4e1eb97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opencl/source/helpers/surface_formats.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ namespace NEO {
8686
//Initialize this with the required formats first.
8787
//Append the optional one later
8888
const ClSurfaceFormatInfo SurfaceFormats::readOnlySurfaceFormats12[] = { COMMONFORMATS, READONLYFORMATS };
89+
8990
const ClSurfaceFormatInfo SurfaceFormats::readOnlySurfaceFormats20[] = { COMMONFORMATS, READONLYFORMATS, SRGBFORMATS };
9091

9192
const ClSurfaceFormatInfo SurfaceFormats::writeOnlySurfaceFormats[] = { COMMONFORMATS };
@@ -104,7 +105,7 @@ const ClSurfaceFormatInfo SurfaceFormats::planarYuvSurfaceFormats[] = {
104105
};
105106

106107
const ClSurfaceFormatInfo SurfaceFormats::packedSurfaceFormats[] = {
107-
{{CL_RG, CL_UNORM_INT16}, {GMM_FORMAT_Y210, GFX3DSTATE_SURFACEFORMAT_PACKED_422_16 , 0, 2, 2, 4}},
108+
{{CL_RGBA, CL_UNORM_INT16}, {GMM_FORMAT_Y210, GFX3DSTATE_SURFACEFORMAT_R16G16B16A16_UNORM , 0, 4, 2, 8}},
108109
{{CL_RG, CL_UNORM_INT16}, {GMM_FORMAT_YUY2_2x1, GFX3DSTATE_SURFACEFORMAT_R10G10B10A2_UNORM , 0, 2, 2, 4}}
109110
};
110111

0 commit comments

Comments
 (0)