eglglessink: GLSL: Save one extra texture lookup
authorReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>
Wed, 10 Oct 2012 15:26:04 +0000 (12:26 -0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Oct 2012 12:35:18 +0000 (14:35 +0200)
ext/eglgles/gsteglglessink.c

index 3cc314e..60666d5 100644 (file)
@@ -294,8 +294,7 @@ static const char *frag_NV12_NV21_prog = {
       "  float r,g,b;"
       "  vec3 yuv;"
       "  yuv.x=texture2D(Ytex,opos).r;"
-      "  yuv.y=texture2D(UVtex,opos).%c;"
-      "  yuv.z=texture2D(UVtex,opos).%c;"
+      "  yuv.yz=texture2D(UVtex,opos).%c%c;"
       "  yuv += offset;"
       "  r = dot(yuv, rcoeff);"
       "  g = dot(yuv, gcoeff);"