[PATCH xf86-video-ati] Remove RR_Capability_SinkOutput for GPU without CRTC
Alex Deucher
alexdeucher at gmail.com
Mon Apr 11 16:20:06 UTC 2016
On Mon, Apr 11, 2016 at 3:39 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Qiang Yu <Qiang.Yu at amd.com>
>
> Signed-off-by: Qiang Yu <Qiang.Yu at amd.com>
> (Ported from amdgpu commit a0bbb373f902e0ffc14570c85faec7e44134f62e)
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> src/radeon_kms.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index c5310ea..c35c951 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -1108,8 +1108,11 @@ static void RADEONSetupCapabilities(ScrnInfoPtr pScrn)
> if (ret == 0) {
> 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;
> + if (value & DRM_PRIME_CAP_IMPORT) {
> + pScrn->capabilities |= RR_Capability_SourceOffload;
> + if (info->drmmode.count_crtcs)
> + pScrn->capabilities |= RR_Capability_SinkOutput;
> + }
> }
> #endif
> }
> @@ -1228,8 +1231,6 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
>
> info->allowColorTiling2D = FALSE;
>
> - RADEONSetupCapabilities(pScrn);
> -
> /* don't enable tiling if accel is not enabled */
> if (!info->r600_shadow_fb) {
> Bool colorTilingDefault =
> @@ -1328,6 +1329,8 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
> goto fail;
> }
>
> + RADEONSetupCapabilities(pScrn);
> +
> if (info->drmmode.count_crtcs == 1)
> pRADEONEnt->HasCRTC2 = FALSE;
> else
> --
> 2.8.0.rc3
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> https://lists.x.org/mailman/listinfo/xorg-driver-ati
More information about the xorg-driver-ati
mailing list