mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
lib/ioctl_wrappers: Add gem_gtt_type exposing raw HAS_ALIASING_PPGTT param
No functional changes.
While I'm here, let's also rename gem_uses_aliasing_ppgtt (since it's
being used to indicate if we are using ANY kind of ppgtt) and introduce
gem_uses_full_ppgtt to drop some unnecessary code from tests that were
previously calling getparam directly instead of using ioctl wrapper.
v2: drop gem_uses_full_48b_ppgtt since it's no longer used anywhere,
s/48b/64b (Chris)
v3: rebase
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
committed by
Daniel Vetter
parent
0e2071411a
commit
52b5d5016e
+1
-1
@@ -258,7 +258,7 @@ gem_init(void)
|
||||
gem.gen = intel_gen(gem.devid);
|
||||
igt_require_f(gem.gen >= 8,
|
||||
"SSEU power gating only relevant for Gen8+");
|
||||
gem.has_ppgtt = gem_uses_aliasing_ppgtt(gem.drm_fd);
|
||||
gem.has_ppgtt = gem_uses_ppgtt(gem.drm_fd);
|
||||
|
||||
gem.bufmgr = drm_intel_bufmgr_gem_init(gem.drm_fd, 4096);
|
||||
igt_assert(gem.bufmgr);
|
||||
|
||||
Reference in New Issue
Block a user