mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Fix locking resource logic for enqueue read/write buffer call
Change-Id: I261ed4904d617a2f4600ea2a5ec7fd34f534c191 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
@@ -416,6 +416,7 @@ HWTEST_F(EnqueueWriteBufferTypeTest, givenForcedCpuCopyWhenEnqueueWriteCompresse
|
||||
nullptr);
|
||||
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_FALSE(buffer->getGraphicsAllocation()->isLocked());
|
||||
EXPECT_FALSE(mockCmdQ->cpuDataTransferHandlerCalled);
|
||||
|
||||
buffer->getGraphicsAllocation()->setAllocationType(GraphicsAllocation::AllocationType::BUFFER);
|
||||
@@ -430,6 +431,7 @@ HWTEST_F(EnqueueWriteBufferTypeTest, givenForcedCpuCopyWhenEnqueueWriteCompresse
|
||||
nullptr);
|
||||
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_TRUE(buffer->getGraphicsAllocation()->isLocked());
|
||||
EXPECT_TRUE(mockCmdQ->cpuDataTransferHandlerCalled);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user