[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.64,1.65

Arpi of Ize arpi at mplayerhq.hu
Thu Jan 9 19:28:59 CET 2003


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv13782/vidix/drivers

Modified Files:
	radeon_vid.c 
Log Message:
Set is_shift_required according to RadeonFamily
rather than device_id (thanks to Marcus Blomenkamp for this idea)

Also give RV200 a seperate family from R200 as they aren't really the same.

patch by James Stembridge <jstembridge at gmx.net>


Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- radeon_vid.c	9 Jan 2003 18:27:50 -0000	1.64
+++ radeon_vid.c	9 Jan 2003 18:28:56 -0000	1.65
@@ -933,6 +933,8 @@
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_MOBILITY_M72||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_MOBILITY_M6||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_MOBILITY_M62) RadeonFamily = 100;
+	     if(ati_card_ids[idx] == DEVICE_ATI_RADEON_RV200_QW ||
+		ati_card_ids[idx] == DEVICE_ATI_RADEON_RV200_QX) RadeonFamily = 150;
 	     if(ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_BB ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QH ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QI ||
@@ -942,9 +944,7 @@
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QH2 ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QI2 ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QJ2 ||
-		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QK2 ||
-		ati_card_ids[idx] == DEVICE_ATI_RADEON_RV200_QW ||
-		ati_card_ids[idx] == DEVICE_ATI_RADEON_RV200_QX) RadeonFamily = 200;
+		ati_card_ids[idx] == DEVICE_ATI_RADEON_R200_QK2) RadeonFamily = 200;
 	     if(ati_card_ids[idx] == DEVICE_ATI_RADEON_R250_ID ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R250_IE ||
 		ati_card_ids[idx] == DEVICE_ATI_RADEON_R250_IF ||
@@ -1011,24 +1011,23 @@
   printf(RADEON_MSG" Saved overlay colorkey settings\n");
 
 #ifdef RADEON
+  switch(RadeonFamily)
+    {
+    case 100:
+    case 150:
+    case 250:
+      is_shift_required=1;
+      break;
+    default:
+      break;
+    }
+
   switch(def_cap.device_id)
     {
     case DEVICE_ATI_RADEON_MOBILITY_M7:
     case DEVICE_ATI_RADEON_MOBILITY_M72:
     case DEVICE_ATI_RADEON_MOBILITY_M62:
       rage_ckey_model=1;
-    case DEVICE_ATI_RADEON_R250_IF:
-    case DEVICE_ATI_RADEON_MOBILITY_M6:
-    case DEVICE_ATI_RADEON_RV200_QW:
-    case DEVICE_ATI_RADEON_RV200_QX:
-    case DEVICE_ATI_RADEON_R100_QD:
-    case DEVICE_ATI_RADEON_R100_QE:
-    case DEVICE_ATI_RADEON_R100_QF:
-    case DEVICE_ATI_RADEON_R100_QG:
-    case DEVICE_ATI_RADEON_VE_QY:
-    case DEVICE_ATI_RADEON_VE_QZ:
-      is_shift_required=1;
-      break;
     default:
 //	printf(RADEON_MSG" Warning! Probably colorkeying isn't working correct!\n");
 	break;



More information about the MPlayer-cvslog mailing list