mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Simplify maxPossiblePitch
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d348526941
commit
07b314240f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user