Enable initial sRGB support
Instead of using the sampler field force_degamma to perform sRGB->linear conversion during pixel sampling, we use an appropriate image format instead. The overhead of this is having to create an image view when creating a texture object from an array. Change-Id: I1ca368c312c1fd4b6f784a3a1b35b5eeb28070ff
Этот коммит содержится в:
@@ -545,7 +545,7 @@ hipError_t ihipArrayCreate(hipArray** array,
|
||||
return hipErrorNotSupported;
|
||||
}
|
||||
|
||||
const cl_channel_order channelOrder = hip::getCLChannelOrder(pAllocateArray->NumChannels);
|
||||
const cl_channel_order channelOrder = hip::getCLChannelOrder(pAllocateArray->NumChannels, 0);
|
||||
const cl_channel_type channelType = hip::getCLChannelType(pAllocateArray->Format, hipReadModeElementType);
|
||||
const cl_mem_object_type imageType = hip::getCLMemObjectType(pAllocateArray->Width,
|
||||
pAllocateArray->Height,
|
||||
|
||||
Ссылка в новой задаче
Block a user