Merge pull request #696 from gargrahul/fix_texrestypelin_size

Fixed image width for linear resource type texture

[ROCm/hip commit: 7ea27d05bc]
Tento commit je obsažen v:
Maneesh Gupta
2018-10-17 06:11:23 +05:30
odevzdal GitHub
+1 -1
Zobrazit soubor
@@ -263,7 +263,7 @@ hipError_t hipCreateTextureObject(hipTextureObject_t* pTexObject, const hipResou
break;
case hipResourceTypeLinear:
devPtr = pResDesc->res.linear.devPtr;
imageDescriptor.width = pResDesc->res.linear.sizeInBytes;
imageDescriptor.width = pResDesc->res.linear.sizeInBytes/((pResDesc->res.linear.desc.x + pResDesc->res.linear.desc.y + pResDesc->res.linear.desc.z + pResDesc->res.linear.desc.w)/8);
imageDescriptor.height = 1;
imageDescriptor.depth = 0;
imageDescriptor.array_size = 0;