SWDEV-345751 - Added parameter check for clEnqueueWriteImage

Change-Id: I9606ea1c3698d009f23b7da673c02fa05b009dbc


[ROCm/clr commit: 96cd9f7b76]
Tá an tiomantas seo le fáil i:
victzhan údaraithe agus Victor Zhang tiomanta 2023-01-26 16:49:56 -05:00
1 tuismitheoir 3a2d258194
tiomantas 33d3101cf6
1 comhad athraithe
+4
+4
Féach ar an gComhad
@@ -2368,6 +2368,10 @@ RUNTIME_ENTRY(cl_int, clEnqueueWriteImage,
return CL_INVALID_OPERATION;
}
if (dstImage->getDims() == 2 && origin[2] != 0) {
return CL_INVALID_VALUE;
}
amd::HostQueue* queue = as_amd(command_queue)->asHostQueue();
if (NULL == queue) {
return CL_INVALID_COMMAND_QUEUE;