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/clr commit: 23211f05d6]
This commit is contained in:
Vladislav Sytchenko committed 2020-03-26 14:45:20 -04:00
1 parent 21587cb0fa
commit e9eababfdd
3 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -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,