[Mesa-dev] [PATCH shader-db 1/3] intel_stub: Handle HAS_WAIT_TIMEOUT getparam.
Kenneth Graunke
kenneth at whitecape.org
Thu May 4 02:44:21 UTC 2017
Newer Mesa requires this. It's irrelevant for us; pretend to have it.
---
intel_stub.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/intel_stub.c b/intel_stub.c
index 4917656..7f85678 100644
--- a/intel_stub.c
+++ b/intel_stub.c
@@ -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;
--
2.12.2
More information about the mesa-dev
mailing list