SWDEV-334857 - hipModuleGetTexRef compatibilty issue
- make the defualt texref value compatible with cuda Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I2ae980e435f3b0fc15b237741e3f2b97c4257e12
This commit is contained in:
committed by
Shadi Dashmiz
orang tua
de026633c0
melakukan
8d93ff521f
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user