summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/intel/drm
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-03-10 12:40:29 +0800
committerChia-I Wu <[email protected]>2014-03-10 16:42:42 +0800
commit345bf92f130e4dc9f36b848af0e7878d7fb5e3cb (patch)
treeb92f2c365b88b46ccf0553cd88a32b5db60c49fb /src/gallium/winsys/intel/drm
parent747627d0456eb14b2fb4c320c5bf0f084f3b2907 (diff)
ilo: print a warning when PPGTT is disabled
Despite what the PRMs say, the driver appears to work fine when PPGTT is disabled. But at least print a warning in that case.
Diffstat (limited to 'src/gallium/winsys/intel/drm')
-rw-r--r--src/gallium/winsys/intel/drm/intel_drm_winsys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c
index dfef9f4a914..250b36f524b 100644
--- a/src/gallium/winsys/intel/drm/intel_drm_winsys.c
+++ b/src/gallium/winsys/intel/drm/intel_drm_winsys.c
@@ -149,6 +149,9 @@ probe_winsys(struct intel_winsys *winsys)
winsys->first_gem_ctx = drm_intel_gem_context_create(winsys->bufmgr);
info->has_logical_context = (winsys->first_gem_ctx != NULL);
+ get_param(winsys, I915_PARAM_HAS_ALIASING_PPGTT, &val);
+ info->has_ppgtt = val;
+
/* test TIMESTAMP read */
info->has_timestamp = test_reg_read(winsys, 0x2358);