summaryrefslogtreecommitdiff
path: root/bicubic.c
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-04-15 15:33:34 +0200
committerDennis kasprzyk <onestone@opencompositing.org>2008-04-15 15:33:34 +0200
commit3d939af834f65645d5a5846380a15230c032a3f3 (patch)
tree517752843f9fd75011d7041e946c410428c3d094 /bicubic.c
parent94d4cbb86bef49ede3009087a1fafe99aca25943 (diff)
downloadbicubic-3d939af834f65645d5a5846380a15230c032a3f3.tar.gz
bicubic-3d939af834f65645d5a5846380a15230c032a3f3.tar.bz2
Prevent texture fetch indirections, caused by the compiz fragment interface.
Diffstat (limited to 'bicubic.c')
-rw-r--r--bicubic.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/bicubic.c b/bicubic.c
index c5676e1..74c6fcf 100644
--- a/bicubic.c
+++ b/bicubic.c
@@ -152,10 +152,23 @@ getBicubicFragmentFunction (CompScreen *s,
ok &= addDataOpToFunctionData (data,
"MAD cs00, program.env[%d], -hgY.x, cs00;", param + 1);
- ok &= addFetchOpToFunctionData (data, "cs00", "cs00", target);
- ok &= addFetchOpToFunctionData (data, "cs01", "cs01", target);
- ok &= addFetchOpToFunctionData (data, "cs10", "cs10", target);
- ok &= addFetchOpToFunctionData (data, "cs11", "cs11", target);
+ ok &= addDataOpToFunctionData (data,
+ "ADD cs00, cs00, fragment.texcoord[0];");
+ ok &= addDataOpToFunctionData (data,
+ "ADD cs01, cs01, fragment.texcoord[0];");
+ ok &= addDataOpToFunctionData (data,
+ "ADD cs10, cs10, fragment.texcoord[0];");
+ ok &= addDataOpToFunctionData (data,
+ "ADD cs11, cs11, fragment.texcoord[0];");
+
+ ok &= addDataOpToFunctionData (data,
+ "TEX cs00, cs00, texture[0], %s;", targetString);
+ ok &= addDataOpToFunctionData (data,
+ "TEX cs01, cs01, texture[0], %s;", targetString);
+ ok &= addDataOpToFunctionData (data,
+ "TEX cs10, cs10, texture[0], %s;", targetString);
+ ok &= addDataOpToFunctionData (data,
+ "TEX cs11, cs11, texture[0], %s;", targetString);
ok &= addDataOpToFunctionData (data, "LRP cs00, hgY.z, cs00, cs01;");
ok &= addDataOpToFunctionData (data, "LRP cs10, hgY.z, cs10, cs11;");