[Mesa-dev] [PATCH shader-db 1/3] intel_stub: Handle HAS_WAIT_TIMEOUT getparam.

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu May 4 06:16:18 UTC 2017


This series is :

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 03/05/17 19:44, Kenneth Graunke wrote:
> 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;




More information about the mesa-dev mailing list