diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-25 09:23:04 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-25 09:34:39 +0100 |
commit | 5dc5012320536f7b1e86a81ed3b823e3626828e1 (patch) | |
tree | 9a25380ee284228925ffaf6535577dcf61888826 | |
parent | 248e912c487636d7352cfad43c03fc9f19fc2215 (diff) |
radeon: dixPrivateKeyRegistered is only in server 1.9
just fallback to the old behaviour on older servers.
should fix: https://bugs.freedesktop.org/show_bug.cgi?id=51388
Review-over-irc: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/radeon_video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index fcca5077..b7a9a55e 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -179,7 +179,10 @@ radeon_pick_best_crtc(ScrnInfoPtr pScrn, best_coverage = 0; /* Prefer the CRTC of the primary output */ - if (dixPrivateKeyRegistered(rrPrivKey)) { +#ifdef HAS_DIXREGISTERPRIVATEKEY + if (dixPrivateKeyRegistered(rrPrivKey)) +#endif + { primary_output = RRFirstOutput(pScrn->pScreen); } if (primary_output && primary_output->crtc) |