[MPlayer-cvslog] r18790 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Thu Jun 22 19:02:43 CEST 2006


Author: reimar
Date: Thu Jun 22 19:02:42 2006
New Revision: 18790

Modified:
   trunk/libvo/gl_common.c

Log:
reduce number of texture indirections to support older cards


Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	(original)
+++ trunk/libvo/gl_common.c	Thu Jun 22 19:02:42 2006
@@ -652,14 +652,14 @@
 #define BICUB_FILT_MAIN(textype) \
   /* first y-interpolation */ \
   "ADD coord, fragment.texcoord[%c].xyxy, cdelta.xyxw;" \
+  "ADD coord2, fragment.texcoord[%c].xyxy, cdelta.zyzw;" \
   "TEX a.r, coord.xyxy, texture[%c], "textype";" \
   "TEX a.g, coord.zwzw, texture[%c], "textype";" \
-  "LRP a.b, parmy.b, a.rrrr, a.gggg;" \
   /* second y-interpolation */ \
-  "ADD coord, fragment.texcoord[%c].xyxy, cdelta.zyzw;" \
-  "TEX a.r, coord.xyxy, texture[%c], "textype";" \
-  "TEX a.g, coord.zwzw, texture[%c], "textype";" \
-  "LRP a.a, parmy.b, a.rrrr, a.gggg;" \
+  "TEX b.r, coord2.xyxy, texture[%c], "textype";" \
+  "TEX b.g, coord2.zwzw, texture[%c], "textype";" \
+  "LRP a.b, parmy.b, a.rrrr, a.gggg;" \
+  "LRP a.a, parmy.b, b.rrrr, b.gggg;" \
   /* x-interpolation */ \
   "LRP yuv.%c, parmx.b, a.bbbb, a.aaaa;"
 
@@ -930,7 +930,7 @@
     "OPTION ARB_precision_hint_fastest;"
     // all scaler variables must go here so they aren't defined
     // multiple times when the same scaler is used more than once
-    "TEMP coord, cdelta, parmx, parmy, a, yuv;";
+    "TEMP coord, coord2, cdelta, parmx, parmy, a, b, yuv;";
   int prog_remain = sizeof(yuv_prog) - strlen(yuv_prog);
   char *prog_pos = &yuv_prog[strlen(yuv_prog)];
   int cur_texu = 3;



More information about the MPlayer-cvslog mailing list