SWDEV-475482 - hipTexObjectCreate align with cuda

Support zero width and height for hipTextObjectCreate to align
with cuda.

Change-Id: I5d4c48625faf5f060ed2a7e634ec65e4ecac9da5
このコミットが含まれているのは:
Rahul Manocha
2024-07-29 12:33:13 -07:00
committed by Rahul Manocha
コミット efce2f77c4
2個のファイルの変更1行の追加9行の削除
+1 -1
ファイルの表示
@@ -1063,7 +1063,7 @@ amd::Image* ihipImageCreate(const cl_channel_order channelOrder,
imageType,
CL_MEM_READ_WRITE,
imageFormat,
imageWidth,
(imageWidth == 0) ? 1 : imageWidth,
(imageHeight == 0) ? 1 : imageHeight,
(imageDepth == 0) ? 1 : imageDepth,
imageRowPitch,