glsl: fix broken +=, -=, *=, /= operators
authorBrian Paul <brianp@vmware.com>
Thu, 8 Jan 2009 22:32:02 +0000 (15:32 -0700)
committerAlan Hourihane <alanh@vmware.com>
Fri, 9 Jan 2009 11:16:40 +0000 (11:16 +0000)
commitebccb250f7131eb508536db7a00608aee98a3b21
treec60868c6b20df8ce05365d391a78b80385ee0795
parent5273a5f0d7b433150cdb16737bb295d76d0594a0
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