[PATCH v2] radeon/vdpau: don't report VDPAU for < r300

David Heidelberger david.heidelberger at ixit.cz
Wed Oct 15 02:37:17 PDT 2014


Signed-off-by: David Heidelberger <david.heidelberger at ixit.cz>
---
  src/radeon_dri2.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 9a9918b..f87ad63 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
-- 
2.1.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-radeon-vdpau-don-t-report-VDPAU-for-r300.patch
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-driver-ati/attachments/20141015/f71cea50/attachment.bin>


More information about the xorg-driver-ati mailing list