diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-15 15:32:53 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-15 16:41:15 -0600 |
commit | d63943f7169c001e42e98ec4b60dcb5b95d9ee05 (patch) | |
tree | 39d2c65e27d1a4a3adf96d6142ceb47a37c7a681 | |
parent | c6e8f0124fde8b7d333d09d9a710e8602f0cce81 (diff) |
mesa: fix some broken /= operators
-rw-r--r-- | src/mesa/shader/slang/library/slang_core.gc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc index ef10b528f0..cfb85b617c 100644 --- a/src/mesa/shader/slang/library/slang_core.gc +++ b/src/mesa/shader/slang/library/slang_core.gc @@ -1218,6 +1218,7 @@ void __operator /= (inout int a, const int b) float invB; __asm float_rcp invB, b; __asm vec4_multiply a, a, invB; + __asm float_to_int __retVal, a; } @@ -1510,7 +1511,7 @@ void __operator /= (inout vec2 v, const float a) { float invA; __asm float_rcp invA, a; - __asm vec4_multiply v.xy, v.xy, a.xx; + __asm vec4_multiply v.xy, v.xy, invA.xx; } @@ -1535,7 +1536,7 @@ void __operator /= (inout vec3 v, const float a) { float invA; __asm float_rcp invA, a; - __asm vec4_multiply v.xyz, v.xyz, a.xxx; + __asm vec4_multiply v.xyz, v.xyz, invA.xxx; } @@ -1560,7 +1561,7 @@ void __operator /= (inout vec4 v, const float a) { float invA; __asm float_rcp invA, a; - __asm vec4_multiply v, v, a.xxxx; + __asm vec4_multiply v, v, invA.xxxx; } |