mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix channel count for RGBx (#2493)
RGBx is defined as a 4 channel format where the 4th channel is ignored (5.3.1.1)
This commit is contained in:
committed by
GitHub
parent
d0aa95be2f
commit
74ebc67294
@@ -137,10 +137,10 @@ uint32_t get_channel_order_channel_count(cl_channel_order order)
|
||||
case CL_RGx: return 2;
|
||||
|
||||
case CL_RGB:
|
||||
case CL_RGBx:
|
||||
case CL_sRGB:
|
||||
case CL_sRGBx: return 3;
|
||||
case CL_sRGB: return 3;
|
||||
|
||||
case CL_RGBx:
|
||||
case CL_sRGBx:
|
||||
case CL_RGBA:
|
||||
case CL_ARGB:
|
||||
case CL_BGRA:
|
||||
|
||||
Reference in New Issue
Block a user