Commit 6e9a9781 authored by Kenneth Graunke's avatar Kenneth Graunke

intel_stub: Report something for I915_CONTEXT_PARAM_GTT_SIZE

iris won't load without this returning a value larger than 4GB.
i965 will use softpin on Gen8+ if it sees a value larger than 4GB.

This is technically wrong for Gen7.5 and older, but i965 doesn't use
the value for anything in that case so it doesn't really matter.
parent 20372b4d
......@@ -282,6 +282,18 @@ ioctl(int fd, unsigned long request, ...)
return 0;
}
case DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM: {
struct drm_i915_gem_context_param *getparam = argp;
switch (getparam->param) {
case I915_CONTEXT_PARAM_GTT_SIZE:
getparam->value = (1ull << 47);
break;
}
return 0;
}
case DRM_IOCTL_I915_GEM_GET_APERTURE: {
struct drm_i915_gem_get_aperture *aperture = argp;
aperture->aper_available_size = 128 * 1024 * 1024;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment