Commit 7164d170 authored by Kenneth Graunke's avatar Kenneth Graunke

intel_stub: Handle HAS_WAIT_TIMEOUT getparam.

Newer Mesa requires this.  It's irrelevant for us; pretend to have it.
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 9c98a49b
......@@ -192,11 +192,14 @@ ioctl(int fd, unsigned long request, ...)
case DRM_IOCTL_I915_GETPARAM: {
struct drm_i915_getparam *getparam = argp;
if (getparam->param == I915_PARAM_HAS_RELAXED_DELTA)
switch (getparam->param) {
case I915_PARAM_HAS_RELAXED_DELTA:
case I915_PARAM_HAS_WAIT_TIMEOUT:
*getparam->value = 1;
else if (getparam->param == I915_PARAM_CHIPSET_ID) {
*getparam->value = strtod(getenv("INTEL_DEVID_OVERRIDE"), NULL);
break;
case I915_PARAM_CHIPSET_ID:
*getparam->value = strtod(getenv("INTEL_DEVID_OVERRIDE"), NULL);
break;
}
return 0;
......
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