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:35:23 +0000 (15:35 -0700)
commit730a407ca288bdd0120b9bb436ae716bfb9415f5
treed6f66db498fda1cbe8102bf78ab2da920377f9c9
parent19c877c3278f5bfc48f55b2ee35ec5f6769e4c90
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