glsl: fix broken +=, -=, *=, /= operators
authorBrian Paul <brianp@vmware.com>
Thu, 8 Jan 2009 22:32:02 +0000 (15:32 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Jan 2009 22:52:06 +0000 (15:52 -0700)
commit1efbad7499626fd5e3718f07de4ed51a346710df
treed88551e27219f8857c61bd2ce660d5126b420ec2
parentf8f9a1b620d31d1a59855fd502caed325d4a324f
glsl: fix broken +=, -=, *=, /= operators

These functions need to return the final computed value.
Now expressions such as a = (b += c) work properly.
Also, no need to use __asm intrinsics in these functions.  The resulting
code is the same when using ordinary arithmetic operators and is more legible.
src/mesa/shader/slang/library/slang_core.gc
src/mesa/shader/slang/library/slang_core_gc.h