Fix image required format - sRGB (#678)

This commit is contained in:
Grzegorz Wawiorko
2020-03-17 11:20:58 +01:00
committed by GitHub
parent 3e771b0070
commit 77da52a4f3

View File

@@ -3742,7 +3742,6 @@ void build_required_image_formats(cl_mem_flags flags,
{ CL_RG, CL_FLOAT }, { CL_RG, CL_FLOAT },
{ CL_RGBA, CL_SNORM_INT8 }, { CL_RGBA, CL_SNORM_INT8 },
{ CL_RGBA, CL_SNORM_INT16 }, { CL_RGBA, CL_SNORM_INT16 },
{ CL_sRGBA, CL_UNORM_INT8 },
}; };
/* /*
@@ -3763,7 +3762,7 @@ void build_required_image_formats(cl_mem_flags flags,
*/ */
static std::vector<cl_image_format> fullProf2XSRGBFormats static std::vector<cl_image_format> fullProf2XSRGBFormats
{ {
{CL_sRGB, CL_UNORM_INT8}, { CL_sRGBA, CL_UNORM_INT8 },
}; };
// Embedded profile // Embedded profile