SWDEV-334857 - hipModuleGetTexRef compatibilty issue

- make the defualt texref value compatible with cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I2ae980e435f3b0fc15b237741e3f2b97c4257e12


[ROCm/clr commit: 8d93ff521f]
このコミットが含まれているのは:
sdashmiz
2022-05-16 11:24:09 -04:00
committed by Shadi Dashmiz
コミット 9be23b6b1f
+4
ファイルの表示
@@ -674,7 +674,11 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
// Texture references created by HIP driver API
// have the default read mode set to normalized float.
// have format set to format float
// set num of channels to 1
(*texRef)->readMode = hipReadModeNormalizedFloat;
(*texRef)->format = HIP_AD_FORMAT_FLOAT;
(*texRef)->numChannels = 1;
hipError_t err = PlatformState::instance().registerTexRef(*texRef, hmod, std::string(name));