Mesa (master): glsl: fix broken +=, -=, *=, /= operators
Brian Paul
brianp at kemper.freedesktop.org
Thu Jan 8 22:37:23 UTC 2009
Module: Mesa
Branch: master
Commit: 730a407ca288bdd0120b9bb436ae716bfb9415f5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=730a407ca288bdd0120b9bb436ae716bfb9415f5
Author: Brian Paul <brianp at vmware.com>
Date: Thu Jan 8 15:32:02 2009 -0700
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 | 569 ++++++++-------
src/mesa/shader/slang/library/slang_core_gc.h | 954 ++++++++++++-------------
2 files changed, 786 insertions(+), 737 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=730a407ca288bdd0120b9bb436ae716bfb9415f5
More information about the mesa-commit
mailing list