mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Revert "performance: change buffer type for new coherency model"
This reverts commit c979495265.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
688a65c7cc
commit
b8246d806f
@@ -470,7 +470,7 @@ TEST_F(ClCreateBufferTests, WhenCreatingBufferWithPropertiesThenPropertiesAreCor
|
||||
|
||||
using clCreateBufferTestsWithRestrictions = api_test_using_aligned_memory_manager;
|
||||
|
||||
TEST_F(clCreateBufferTestsWithRestrictions, GivenMemoryManagerRestrictionsAndOldCoherencyModelWhenMinIsLessThanHostPtrThenUseZeroCopy) {
|
||||
TEST_F(clCreateBufferTestsWithRestrictions, GivenMemoryManagerRestrictionsWhenMinIsLessThanHostPtrThenUseZeroCopy) {
|
||||
std::unique_ptr<unsigned char[]> hostMem(nullptr);
|
||||
unsigned char *destMem = nullptr;
|
||||
cl_mem_flags flags = CL_MEM_USE_HOST_PTR;
|
||||
@@ -495,13 +495,7 @@ TEST_F(clCreateBufferTestsWithRestrictions, GivenMemoryManagerRestrictionsAndOld
|
||||
EXPECT_NE(nullptr, buffer);
|
||||
|
||||
Buffer *bufferObj = NEO::castToObject<Buffer>(buffer);
|
||||
|
||||
auto &productHelper = device->getProductHelper();
|
||||
if (productHelper.isNewCoherencyModelSupported()) {
|
||||
EXPECT_FALSE(bufferObj->isMemObjZeroCopy());
|
||||
} else {
|
||||
EXPECT_TRUE(bufferObj->isMemObjZeroCopy());
|
||||
}
|
||||
EXPECT_TRUE(bufferObj->isMemObjZeroCopy());
|
||||
|
||||
retVal = clReleaseMemObject(buffer);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
Reference in New Issue
Block a user