Correct texture element size calculations
hipChannelFormatDesc contains size of each channel in bits. There's 8 bits per byte, not 4, so we should divide by 8.
Change-Id: I38ae2d28ad54740823c98908ca2afecad0ba0183
[ROCm/hip commit: e9033edc10]
Este cometimento está contido em:
1 ascendente
7f26819b2f
cometimento
2780b86df2
1 ficheiro modificado
+1
-1
@@ -898,6 +898,6 @@ HIP_RESOURCE_VIEW_DESC getResourceViewDesc(const hipResourceViewDesc& resViewDes
|
||||
|
||||
inline
|
||||
size_t getElementSize(const hipChannelFormatDesc &desc) {
|
||||
return (desc.x / 4) * getNumChannels(desc);
|
||||
return (desc.x / 8) * getNumChannels(desc);
|
||||
}
|
||||
};
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador