[PATCH xf86-video-amdgpu 1/3] Don't advertise any PRIME offloading capabilities without acceleration

Richard Wilbur richard.wilbur at gmail.com
Mon Feb 15 17:12:39 UTC 2016


> -               if (value & DRM_PRIME_CAP_EXPORT) {
> -                       pScrn->capabilities |= RR_Capability_SourceOutput;
> -                       if (info->use_glamor && info->dri2.available)
> -                               pScrn->capabilities |= RR_Capability_SinkOffload;
> -               }
> -               if (value & DRM_PRIME_CAP_IMPORT) {
> -                       pScrn->capabilities |= RR_Capability_SinkOutput;
> -                       if (info->use_glamor && info->dri2.available)
> -                               pScrn->capabilities |= RR_Capability_SourceOffload;
> -               }
> +               if (value & DRM_PRIME_CAP_EXPORT)
> +                       pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SinkOffload;
> +               if (value & DRM_PRIME_CAP_IMPORT)
> +                       pScrn->capabilities |= RR_Capability_SinkOutput | RR_Capability_SourceOffload;
>         }
>  #endif
>  }

I see the factoring of if (info->use_glamor) out of setting the
capabilities flags, but I'm wondering whether 'info->dri2.available'
still matters?


More information about the xorg-driver-ati mailing list