mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
UM-KM data refactor for Windows
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dd6653892e
commit
70f8fe1c01
@@ -31,7 +31,7 @@ TEST_F(EnqueueKernelTest, givenKernelWithSharedObjArgsWhenEnqueueIsCalledThenRes
|
||||
auto nonSharedBuffer = new MockBuffer;
|
||||
MockGlSharing glSharing;
|
||||
MockGmm mockGmm;
|
||||
glSharing.uploadDataToBufferInfo(1, 0, mockGmm.gmmResourceInfo->peekHandle());
|
||||
glSharing.uploadDataToBufferInfo(1, 0, mockGmm.gmmResourceInfo->peekGmmResourceInfo());
|
||||
pContext->setSharingFunctions(glSharing.sharingFunctions.release());
|
||||
auto retVal = CL_SUCCESS;
|
||||
auto sharedBuffer = GlBuffer::createSharedGlBuffer(pContext, CL_MEM_READ_WRITE, 1, &retVal);
|
||||
@@ -54,7 +54,7 @@ TEST_F(EnqueueKernelTest, givenKernelWithSharedObjArgsWhenEnqueueIsCalledThenRes
|
||||
EXPECT_EQ(sharedBufferGpuAddress, address1);
|
||||
|
||||
// update address
|
||||
glSharing.uploadDataToBufferInfo(1, 1, mockGmm.gmmResourceInfo->peekHandle());
|
||||
glSharing.uploadDataToBufferInfo(1, 1, mockGmm.gmmResourceInfo->peekGmmResourceInfo());
|
||||
pCmdQ->enqueueAcquireSharedObjects(1, &sharedMem, 0, nullptr, nullptr, CL_COMMAND_ACQUIRE_GL_OBJECTS);
|
||||
|
||||
callOneWorkItemNDRKernel();
|
||||
|
||||
Reference in New Issue
Block a user