mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Refactor blit buffer call
Resolves: NEO-3241 Change-Id: I726135ae55d1e0fcbacd80620e827ee5c7c0c8dc Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5ab8748fc5
commit
552a1268eb
@@ -193,8 +193,8 @@ TEST_F(EnqueueUnmapMemObjTest, UnmapMemObjWaitEvent) {
|
||||
HWTEST_F(EnqueueUnmapMemObjTest, givenEnqueueUnmapMemObjectWhenNonAubWritableBufferObjectMappedToHostPtrForWritingThenItShouldBeResetToAubAndTbxWritable) {
|
||||
auto buffer = std::unique_ptr<Buffer>(BufferHelper<>::create());
|
||||
ASSERT_NE(nullptr, buffer);
|
||||
buffer->getGraphicsAllocation()->setAubWritable(false);
|
||||
buffer->getGraphicsAllocation()->setTbxWritable(false);
|
||||
buffer->getGraphicsAllocation()->setAubWritable(false, GraphicsAllocation::defaultBank);
|
||||
buffer->getGraphicsAllocation()->setTbxWritable(false, GraphicsAllocation::defaultBank);
|
||||
|
||||
auto mappedForWritingPtr = pCmdQ->enqueueMapBuffer(buffer.get(), CL_TRUE, CL_MAP_WRITE, 0, 8, 0, nullptr, nullptr, retVal);
|
||||
ASSERT_NE(nullptr, mappedForWritingPtr);
|
||||
@@ -207,6 +207,6 @@ HWTEST_F(EnqueueUnmapMemObjTest, givenEnqueueUnmapMemObjectWhenNonAubWritableBuf
|
||||
nullptr);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
EXPECT_TRUE(buffer->getGraphicsAllocation()->isAubWritable());
|
||||
EXPECT_TRUE(buffer->getGraphicsAllocation()->isTbxWritable());
|
||||
EXPECT_TRUE(buffer->getGraphicsAllocation()->isAubWritable(GraphicsAllocation::defaultBank));
|
||||
EXPECT_TRUE(buffer->getGraphicsAllocation()->isTbxWritable(GraphicsAllocation::defaultBank));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user