SWDEV-334857 - hipModuleGetTexRef compatibilty issue
- make the defualt texref value compatible with cuda Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I2ae980e435f3b0fc15b237741e3f2b97c4257e12
Этот коммит содержится в:
коммит произвёл
Shadi Dashmiz
родитель
de026633c0
Коммит
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));
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user