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
이 커밋은 다음에 포함됨:
Vlad Sytchenko 작성하고 Vladislav Sytchenko가 2020-06-19 11:39:03 -04:00를 커밋함
1 부모 2461135d8a
커밋 81b15ed36e
1 파일이 변경됨
+1 -1
+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);
}
};