mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
fix: handle not aligned gtt size reported by i915
when i915 reports gtt size between 47 and 48 bits we consider it as 48 bit VA space Related-To: GSD-8215 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d6a14d4ed5
commit
420e1391b2
@@ -174,7 +174,7 @@ class DrmMock : public Drm {
|
||||
else
|
||||
return Drm::useVMBindImmediate();
|
||||
}
|
||||
int queryGttSize(uint64_t >tSizeOutput) override {
|
||||
int queryGttSize(uint64_t >tSizeOutput, bool alignUpToFullRange) override {
|
||||
gttSizeOutput = storedGTTSize;
|
||||
return storedRetValForGetGttSize;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ class DrmMock : public Drm {
|
||||
GemVmControl receivedGemVmControl{};
|
||||
uint32_t latestCreatedVmId = 0u;
|
||||
|
||||
uint64_t storedGTTSize = 1ull << 47;
|
||||
uint64_t storedGTTSize = defaultHwInfo->capabilityTable.gpuAddressSpace + 1;
|
||||
uint64_t storedParamSseu = ULONG_MAX;
|
||||
|
||||
Ioctls ioctlCount{};
|
||||
|
||||
Reference in New Issue
Block a user