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


[ROCm/hip commit: 8ddeeb4551]
Esse commit está contido em:
Vladislav Sytchenko
2020-03-23 14:11:25 -04:00
commit 99b2084641
3 arquivos alterados com 12 adições e 12 exclusões
+1 -1
Ver Arquivo
@@ -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,