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]
This commit is contained in:
sdashmiz authored and Shadi Dashmiz committed 2022-06-10 15:13:29 -04:00
1 förälder 70189c7e2e
incheckning 9be23b6b1f
1 file changed
+4
+4
Visa fil
@@ -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));