diff options
Diffstat (limited to 'tests/shaders/generic/fdo30337a.vpfp')
-rw-r--r-- | tests/shaders/generic/fdo30337a.vpfp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/shaders/generic/fdo30337a.vpfp b/tests/shaders/generic/fdo30337a.vpfp new file mode 100644 index 00000000..48b97d73 --- /dev/null +++ b/tests/shaders/generic/fdo30337a.vpfp @@ -0,0 +1,17 @@ +!!ARBvp1.0 +OPTION ARB_position_invariant; +END + +!!ARBfp1.0 +#This tests instructions like: ADD Temp[0], Temp[0], Temp[1] where one of +#the source registers is the same as the destination register. These +#should not be replaced with presubtract operations. +TEMP color; +MOV color, {0.1, 0.4, 0.8, 1.0}; +ADD color.x, color.x, color.x; +ADD color.y, color.x, color.y; +MOV result.color, color; +END + +!!test +expected 0.2 0.6 0.8 1.0 |