]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915/gtt: Compute the radix for gen8 page table levels
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 09:43:25 +0000 (10:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 11:22:33 +0000 (12:22 +0100)
commit2776326457562f971b7b38f4683e298e55252ccc
tree9b73f6a7d871f5f866b3d8ea2342bbff10d450b1
parent18c7962b8cf24a5a2a757db16f535ff8c5191966
drm/i915/gtt: Compute the radix for gen8 page table levels

The radix levels of each page directory are easily determined so replace
the numerous hardcoded constants with precomputed derived constants.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712094327.24437-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h