SWDEV-331355 - Fixing the surface object on fillMemory function call.

Change-Id: Ieaa359ea8f31b0251d54b720469cdefde202579f
This commit is contained in:
kjayapra-amd
2022-04-28 12:38:04 -07:00
committed by Karthik Jayaprakash
parent 8e5205bb3a
commit 643ee46f28
+2 -1
View File
@@ -2442,7 +2442,8 @@ void VirtualGPU::submitSvmFillMemory(amd::SvmFillMemoryCommand& cmd) {
assert((dstMemory->validateRegion(origin, size)) && "The incorrect fill size!");
if (!fillMemory(cmd.type(), dstMemory, cmd.pattern(), cmd.patternSize(), origin, size, true)) {
if (!fillMemory(cmd.type(), dstMemory, cmd.pattern(), cmd.patternSize(), size, origin, size,
true)) {
cmd.setStatus(CL_INVALID_OPERATION);
}
} else {