Runtime: Add support for sRGB

Graphics / Beignet - Pan Xiuli [intel.com] - 8 November 2016 06:38 UTC

CL_sRGBA with CL_UNNORM_INT8 is the minimum request for OpenCL2.0 and CL_sBGRA is also support by hardware. None of the sRGB surface type suport hardware write.

6f98ade Runtime: Add support for sRGB
backend/src/ocl_common_defines.h | 7 ++++++-
src/cl_api.c | 2 +-
src/cl_image.c | 19 ++++++++++++++++++-
utests/utest_helper.cpp | 2 ++
4 files changed, 27 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share