Simplify maxPossiblePitch

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2021-09-22 16:52:10 +00:00
committed by Compute-Runtime-Automation
parent d348526941
commit 07b314240f

View File

@@ -27,7 +27,7 @@ class GmmHelper {
const HardwareInfo *getHardwareInfo();
uint32_t getMOCS(uint32_t type) const;
static constexpr uint64_t maxPossiblePitch = 2147483648;
static constexpr uint64_t maxPossiblePitch = (1ull << 31);
static uint64_t canonize(uint64_t address) {
return static_cast<int64_t>(address << (64 - GmmHelper::addressWidth)) >> (64 - GmmHelper::addressWidth);