SWDEV-389541 - mipmap tests failed

Change-Id: I8dec8ff9515c55a3a6b16157f7d064b2b109d5f3
This commit is contained in:
Alex Xie
2023-04-17 14:49:09 -04:00
committad av AlexBin Xie
förälder a0c1f496a4
incheckning 475f80ee0e
+1 -1
Visa fil
@@ -2368,7 +2368,7 @@ RUNTIME_ENTRY(cl_int, clEnqueueWriteImage,
return CL_INVALID_OPERATION;
}
if (dstImage->getDims() == 2 && origin[2] != 0) {
if (dstImage->getDims() == 2 && origin[2] != 0 && dstImage->getMipLevels() == 0) {
return CL_INVALID_VALUE;
}