Report maxTexture1DLinear property

Change-Id: If562bbee80d8b98712806cb8258b5a7482d33bf6
此提交包含在:
Vladislav Sytchenko committed 2020-11-20 10:18:20 -05:00
1 父節點 f7a0587203
當前提交 fb04bdc4f2
2 file changed
+2

No files matched your search

+1
查看文件
@@ -209,6 +209,7 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.cooperativeMultiDeviceUnmatchedBlockDim = info.cooperativeMultiDeviceGroups_;
deviceProps.cooperativeMultiDeviceUnmatchedSharedMem = info.cooperativeMultiDeviceGroups_;
deviceProps.maxTexture1DLinear = 16 * info.imageMaxBufferSize_; // Max pixel size is 16 bytes
deviceProps.maxTexture1D = info.image1DMaxWidth_;
deviceProps.maxTexture2D[0] = info.image2DMaxWidth_;
deviceProps.maxTexture2D[1] = info.image2DMaxHeight_;