mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
performance: program pat index on mtl linux
Enable programming pat indexes on mtl linux for device buffers. Change DrmMemoryManager::allocateMemoryByKMD to use gemCreateExt. Related-To: NEO-7896 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ad72d0f64b
commit
8e0b23db84
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -77,8 +77,10 @@ class DrmMockTime : public DrmMockSuccess {
|
||||
public:
|
||||
using DrmMockSuccess::DrmMockSuccess;
|
||||
int ioctl(DrmIoctl request, void *arg) override {
|
||||
auto *reg = reinterpret_cast<NEO::RegisterRead *>(arg);
|
||||
reg->value = getVal() << 32 | 0x1;
|
||||
if (DrmIoctl::regRead == request) {
|
||||
auto *reg = reinterpret_cast<NEO::RegisterRead *>(arg);
|
||||
reg->value = getVal() << 32 | 0x1;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user