mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Add additional create buffer arguments
Allow to: disable performance hints, make allocation lockable Used in BufferPoolAllocator Related-To: NEO-7332 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
50df7f430e
commit
67bfebb25e
@@ -84,11 +84,11 @@ struct PerformanceHintTest : public DriverDiagnosticsTest,
|
||||
};
|
||||
|
||||
struct PerformanceHintBufferTest : public PerformanceHintTest,
|
||||
public ::testing::WithParamInterface<std::tuple<bool /*address aligned*/, bool /*size aligned*/>> {
|
||||
public ::testing::WithParamInterface<std::tuple<bool /*address aligned*/, bool /*size aligned*/, bool /*provide performance hint*/>> {
|
||||
|
||||
void SetUp() override {
|
||||
PerformanceHintTest::SetUp();
|
||||
std::tie(alignedAddress, alignedSize) = GetParam();
|
||||
std::tie(alignedAddress, alignedSize, providePerformanceHint) = GetParam();
|
||||
address = alignedMalloc(2 * MemoryConstants::cacheLineSize, MemoryConstants::cacheLineSize);
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ struct PerformanceHintBufferTest : public PerformanceHintTest,
|
||||
}
|
||||
bool alignedSize = false;
|
||||
bool alignedAddress = false;
|
||||
bool providePerformanceHint = false;
|
||||
void *address = nullptr;
|
||||
Buffer *buffer = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user