SWDEV-327502 Disable 3D linear filter on Mi200

Change-Id: I3f79fb4f3a59cd7335c5ca2363cf1659a0a7f6aa


[ROCm/clr commit: 2a91d45704]
Этот коммит содержится в:
Tao Sang
2022-06-30 17:23:24 -04:00
коммит произвёл Tao Sang
родитель a4b6127a80
Коммит c5f60e51ac
+10 -4
Просмотреть файл
@@ -96,10 +96,16 @@ hipError_t ihipCreateTextureObject(hipTextureObject_t* pTexObject,
}
// If hipResourceDesc::resType is set to hipResourceTypeArray,
// hipResourceDesc::res::array::array must be set to a valid HIP array handle.
if ((pResDesc->resType == hipResourceTypeArray) &&
(pResDesc->res.array.array == nullptr)) {
return hipErrorInvalidValue;
if (pResDesc->resType == hipResourceTypeArray) {
// hipResourceDesc::res::array::array must be set to a valid HIP array handle.
if (pResDesc->res.array.array == nullptr) {
return hipErrorInvalidValue;
} else if (pResDesc->res.array.array->depth > 0 &&
pTexDesc->filterMode == hipFilterModeLinear &&
!strncmp(info.name_, "gfx90a", strlen("gfx90a"))) {
LogPrintfInfo("%s doesn't support 3D linear filter!", info.name_);
return hipErrorNotSupported;
}
}
// If hipResourceDesc::resType is set to hipResourceTypeMipmappedArray,