SWDEV-475482 - hipTexObjectCreate align with cuda

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

Change-Id: I5d4c48625faf5f060ed2a7e634ec65e4ecac9da5
Этот коммит содержится в:
Rahul Manocha authored and Rahul Manocha committed 2024-11-19 23:28:55 -05:00
1 родитель a2d8199402
Коммит efce2f77c4
2 files changed
+1 -9

No files matched your search

+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,