SWDEV-319818 - Release restriction on hipResourceViewDesc
Let more types support hipResourceViewDesc.
Add missing symbols to fix cuda build failing.
Change-Id: Ife694cc6491427093863252e257e820b0bb4fa0f
[ROCm/clr commit: a19b767e8a]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
b53cb9e585
tiomantas
1a9a5f9bfc
2 comhad athraithe
+38
-3
Níor tháinig aon chomhaid le do chuardach
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir