SWDEV-475482 - hipTexObjectCreate align with cuda

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

Change-Id: I5d4c48625faf5f060ed2a7e634ec65e4ecac9da5
Tento commit je obsažen v:
Rahul Manocha
2024-07-29 12:33:13 -07:00
odevzdal Rahul Manocha
rodič a2d8199402
revize efce2f77c4
2 změnil soubory, kde provedl 1 přidání a 9 odebrání
+1 -1
Zobrazit soubor
@@ -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,