On Mon, Jun 27, 2016 at 01:53:13PM -0400, [email protected] wrote:
> From: Robert Foss <[email protected]>
> 
> Avoid running gem_quiescent_gpu() on non-Intel hardware.
> 
> Signed-off-by: Robert Foss <[email protected]>
> ---
>  lib/drmtest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 632fec4..6427657 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -338,7 +338,7 @@ int drm_open_driver(int chipset)
>       if (__sync_fetch_and_add(&open_count, 1))
>               return fd;
>  
> -     if(chipset & DRIVER_INTEL){
> +     if(chipset == DRIVER_INTEL){

That doesn't work. You need an is_i915_device()
Took the liberty of making that change and pushing with your credit.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to