rusticl/image: enable sRGB support
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35535>
This commit is contained in:
Karol Herbst 2025-06-15 12:27:38 +02:00 committed by Marge Bot
parent e0cdf4dfdd
commit 21ed913198
3 changed files with 4 additions and 5 deletions

View file

@ -769,7 +769,7 @@ Rusticl OpenCL 2.0 -- all DONE:
- CL_ABGR DONE
- cl_khr_image2d_from_buffer DONE (freedreno, iris, llvmpipe)
- cl_khr_depth_images DONE
- from sRGB images in progress
- from sRGB images DONE
clCreateSamplerWithProperties DONE
Non-uniform work-group sizes not started
cl_khr_3d_image_writes DONE (freedreno, iris, llvmpipe, nvc0, panfrost, radeonsi, zink)

View file

@ -51,3 +51,4 @@ VK_KHR_present_wait2
VK_EXT_descriptor_indexing on panvk/v10+
cl_khr_priority_hints
VK_KHR_maintenance6 on panvk/v10+
CL_sRGBA and CL_sBGRA images

View file

@ -176,10 +176,8 @@ cl_format_table!([
// (CL_RGBx, CL_UNORM_SHORT_555) => pipe_format::PIPE_FORMAT_R5G5B5X1_UNORM,
// (CL_RGBx, CL_UNORM_INT_101010) => pipe_format::PIPE_FORMAT_R10G10B10X2_UNORM,
// broken
// (CL_sRGB, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_R8G8B8_SRGB,
// (CL_sRGBA, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_R8G8B8A8_SRGB,
// (CL_sBGRA, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_B8G8R8A8_SRGB,
(CL_sRGBA, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_R8G8B8A8_SRGB,
(CL_sBGRA, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_B8G8R8A8_SRGB,
// broken
// (CL_sRGBx, CL_UNORM_INT8) => pipe_format::PIPE_FORMAT_R8G8B8X8_SRGB,