Merge pull request #696 from gargrahul/fix_texrestypelin_size

Fixed image width for linear resource type texture

[ROCm/clr commit: 5ca415a172]
Este commit está contenido en:
Maneesh Gupta
2018-10-17 06:11:23 +05:30
cometido por GitHub
+1 -1
Ver fichero
@@ -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;