diff options
author | Keith Whitwell <[email protected]> | 2009-09-12 18:33:46 -0700 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-09-12 18:33:46 -0700 |
commit | 18e5f1cee4cadc6306ebc2e2ba047172ff42556a (patch) | |
tree | d7eaa67b09be8bde426794f8664f8a6c38dcb67d /progs/fp | |
parent | 055fe5768c6e455b3466be47e1771711c495f1c6 (diff) |
tgsi: implement saturation
Fix recent performance regression.
Diffstat (limited to 'progs/fp')
-rw-r--r-- | progs/fp/add-sat.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 |