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
Этот коммит содержится в:
Vladislav Sytchenko
2020-03-23 14:11:25 -04:00
родитель faf3b83594
Коммит 8ddeeb4551
3 изменённых файлов: 12 добавлений и 12 удалений
+1 -1
Просмотреть файл
@@ -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,