SWDEV-319818 - Release restriction on hipResourceViewDesc

Let more types support hipResourceViewDesc.
Add missing symbols to fix cuda build failing.

Change-Id: Ife694cc6491427093863252e257e820b0bb4fa0f
这个提交包含在:
Tao Sang 编写, Tao Sang 于 2022-05-10 15:57:31 -04:00 提交
1 父节点 d04938a6ad
当前提交 a19b767e8a
2 个文件已更改
+38 -3

没有与搜索条件相匹配的文件

+1 -3
查看文件
@@ -88,9 +88,7 @@ hipError_t ihipCreateTextureObject(hipTextureObject_t* pTexObject,
return hipErrorInvalidValue;
}
// pResViewDesc can only be specified if the type of resource is a HIP array or a HIP mipmapped array.
if ((pResViewDesc != nullptr) &&
((pResDesc->resType != hipResourceTypeArray) && (pResDesc->resType != hipResourceTypeMipmappedArray))) {
if (pResViewDesc != nullptr && pResDesc->resType == hipResourceTypeLinear) {
return hipErrorInvalidValue;
}