diff options
author | David Heidelberger <david.heidelberger@ixit.cz> | 2014-10-12 16:34:21 +0200 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2014-10-28 15:13:33 +0900 |
commit | 7c7b38e0b375b6e8853ad2d1092302ea83f6f570 (patch) | |
tree | 864da87726015b1be2bc48191e095c131040b28e /src | |
parent | c74de9fec13fac2c836bb2a07ae6f90e1d61e667 (diff) |
radeon/vdpau: don't report VDPAU for < r300
Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_dri2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index 9a9918b0..64e541f8 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -1608,7 +1608,12 @@ radeon_dri2_screen_init(ScreenPtr pScreen) dri2_info.ScheduleWaitMSC = radeon_dri2_schedule_wait_msc; dri2_info.numDrivers = RADEON_ARRAY_SIZE(driverNames); dri2_info.driverNames = driverNames; - driverNames[0] = driverNames[1] = dri2_info.driverName; + driverNames[0] = dri2_info.driverName; + + if (info->ChipFamily >= CHIP_FAMILY_R300) + driverNames[1] = driverNames[0]; + else + driverNames[1] = NULL; /* no VDPAU support */ if (DRI2InfoCnt == 0) { #if HAS_DIXREGISTERPRIVATEKEY |