From 18e5f1cee4cadc6306ebc2e2ba047172ff42556a Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 12 Sep 2009 18:33:46 -0700 Subject: tgsi: implement saturation Fix recent performance regression. --- progs/fp/add-sat.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 progs/fp/add-sat.txt (limited to 'progs/fp/add-sat.txt') diff --git a/progs/fp/add-sat.txt b/progs/fp/add-sat.txt new file mode 100644 index 00000000000..2253efb0855 --- /dev/null +++ b/progs/fp/add-sat.txt @@ -0,0 +1,6 @@ +!!ARBfp1.0 +TEMP R0; +MOV R0, fragment.color; +ADD_SAT R0, R0, R0; +MUL result.color, {0.5}.x, R0; +END -- cgit v1.2.3