diff options
author | Brian <brian@yutani.localnet.net> | 2007-03-08 15:53:05 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-08 15:53:05 -0700 |
commit | 2f35a17f38e3974b0a6e00017408efd417afd4e8 (patch) | |
tree | e6eefbd1f98d5c2cdc432abf2f622eb9290f3f74 /src/mesa/shader/slang/library/slang_common_builtin.gc | |
parent | 5761a93bba11e8a47660f465b27485e130150242 (diff) |
Update lessThan(), lessThanEqual() functions, improve some matrix constructors.
Diffstat (limited to 'src/mesa/shader/slang/library/slang_common_builtin.gc')
-rw-r--r-- | src/mesa/shader/slang/library/slang_common_builtin.gc | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/src/mesa/shader/slang/library/slang_common_builtin.gc b/src/mesa/shader/slang/library/slang_common_builtin.gc index 476608fb06..42a5d723b4 100644 --- a/src/mesa/shader/slang/library/slang_common_builtin.gc +++ b/src/mesa/shader/slang/library/slang_common_builtin.gc @@ -1329,199 +1329,199 @@ mat4 matrixCompMult (mat4 m, mat4 n) { //// lessThan -bvec2 lessThan(const vec2 v, const vec2 u) +bvec2 lessThan(const vec2 u, const vec2 v) { - __asm vec4_sgt __retVal.xy, u, v; + __asm vec4_slt __retVal.xy, u, v; } -bvec3 lessThan(const vec3 v, const vec3 u) +bvec3 lessThan(const vec3 u, const vec3 v) { - __asm vec4_sgt __retVal.xyz, u, v; + __asm vec4_slt __retVal.xyz, u, v; } -bvec4 lessThan(const vec4 v, const vec4 u) +bvec4 lessThan(const vec4 u, const vec4 v) { - __asm vec4_sgt __retVal, u, v; + __asm vec4_slt __retVal, u, v; } -bvec2 lessThan(const ivec2 v, const ivec2 u) +bvec2 lessThan(const ivec2 u, const ivec2 v) { - __asm vec4_sgt __retVal.xy, u, v; + __asm vec4_slt __retVal.xy, u, v; } -bvec3 lessThan(const ivec3 v, const ivec3 u) +bvec3 lessThan(const ivec3 u, const ivec3 v) { - __asm vec4_sgt __retVal.xyz, u, v; + __asm vec4_slt __retVal.xyz, u, v; } -bvec4 lessThan(const ivec4 v, const ivec4 u) +bvec4 lessThan(const ivec4 u, const ivec4 v) { - __asm vec4_sgt __retVal, u, v; + __asm vec4_slt __retVal, u, v; } //// lessThanEqual -bvec2 lessThanEqual(const vec2 v, const vec2 u) +bvec2 lessThanEqual(const vec2 u, const vec2 v) { - __asm vec4_sge __retVal.xy, u, v; + __asm vec4_sle __retVal.xy, u, v; } -bvec3 lessThanEqual(const vec3 v, const vec3 u) +bvec3 lessThanEqual(const vec3 u, const vec3 v) { - __asm vec4_sge __retVal.xyz, u, v; + __asm vec4_sle __retVal.xyz, u, v; } -bvec4 lessThanEqual(const vec4 v, const vec4 u) +bvec4 lessThanEqual(const vec4 u, const vec4 v) { - __asm vec4_sge __retVal, u, v; + __asm vec4_sle __retVal, u, v; } -bvec2 lessThanEqual(const ivec2 v, const ivec2 u) +bvec2 lessThanEqual(const ivec2 u, const ivec2 v) { - __asm vec4_sge __retVal.xy, u, v; + __asm vec4_sle __retVal.xy, u, v; } -bvec3 lessThanEqual(const ivec3 v, const ivec3 u) +bvec3 lessThanEqual(const ivec3 u, const ivec3 v) { - __asm vec4_sge __retVal.xyz, u, v; + __asm vec4_sle __retVal.xyz, u, v; } -bvec4 lessThanEqual(const ivec4 v, const ivec4 u) +bvec4 lessThanEqual(const ivec4 u, const ivec4 v) { - __asm vec4_sge __retVal, u, v; + __asm vec4_sle __retVal, u, v; } //// greaterThan -bvec2 greaterThan(const vec2 v, const vec2 u) +bvec2 greaterThan(const vec2 u, const vec2 v) { - __asm vec4_sgt __retVal.xy, v, u; + __asm vec4_sgt __retVal.xy, u, v; } -bvec3 greaterThan(const vec3 v, const vec3 u) +bvec3 greaterThan(const vec3 u, const vec3 v) { - __asm vec4_sgt __retVal.xyz, v, u; + __asm vec4_sgt __retVal.xyz, u, v; } -bvec4 greaterThan(const vec4 v, const vec4 u) +bvec4 greaterThan(const vec4 u, const vec4 v) { - __asm vec4_sgt __retVal, v, u; + __asm vec4_sgt __retVal, u, v; } -bvec2 greaterThan(const ivec2 v, const ivec2 u) +bvec2 greaterThan(const ivec2 u, const ivec2 v) { - __asm vec4_sgt __retVal.xy, v, u; + __asm vec4_sgt __retVal.xy, u, v; } -bvec3 greaterThan(const ivec3 v, const ivec3 u) +bvec3 greaterThan(const ivec3 u, const ivec3 v) { - __asm vec4_sgt __retVal.xyz, v, u; + __asm vec4_sgt __retVal.xyz, u, v; } -bvec4 greaterThan(const ivec4 v, const ivec4 u) +bvec4 greaterThan(const ivec4 u, const ivec4 v) { - __asm vec4_sgt __retVal, v, u; + __asm vec4_sgt __retVal, u, v; } //// greaterThanEqual -bvec2 greaterThanEqual(const vec2 v, const vec2 u) +bvec2 greaterThanEqual(const vec2 u, const vec2 v) { - __asm vec4_sge __retVal.xy, v, u; + __asm vec4_sge __retVal.xy, u, v; } -bvec3 greaterThanEqual(const vec3 v, const vec3 u) +bvec3 greaterThanEqual(const vec3 u, const vec3 v) { - __asm vec4_sge __retVal.xyz, v, u; + __asm vec4_sge __retVal.xyz, u, v; } -bvec4 greaterThanEqual(const vec4 v, const vec4 u) +bvec4 greaterThanEqual(const vec4 u, const vec4 v) { - __asm vec4_sge __retVal, v, u; + __asm vec4_sge __retVal, u, v; } -bvec2 greaterThanEqual(const ivec2 v, const ivec2 u) +bvec2 greaterThanEqual(const ivec2 u, const ivec2 v) { - __asm vec4_sge __retVal.xy, v, u; + __asm vec4_sge __retVal.xy, u, v; } -bvec3 greaterThanEqual(const ivec3 v, const ivec3 u) +bvec3 greaterThanEqual(const ivec3 u, const ivec3 v) { - __asm vec4_sge __retVal.xyz, v, u; + __asm vec4_sge __retVal.xyz, u, v; } -bvec4 greaterThanEqual(const ivec4 v, const ivec4 u) +bvec4 greaterThanEqual(const ivec4 u, const ivec4 v) { - __asm vec4_sge __retVal, v, u; + __asm vec4_sge __retVal, u, v; } //// equal -bvec2 equal(const vec2 v, const vec2 u) +bvec2 equal(const vec2 u, const vec2 v) { - __asm vec4_seq __retVal.xy, v, u; + __asm vec4_seq __retVal.xy, u, v; } -bvec3 equal(const vec3 v, const vec3 u) +bvec3 equal(const vec3 u, const vec3 v) { - __asm vec4_seq __retVal.xyz, v, u; + __asm vec4_seq __retVal.xyz, u, v; } -bvec4 equal(const vec4 v, const vec4 u) +bvec4 equal(const vec4 u, const vec4 v) { - __asm vec4_seq __retVal, v, u; + __asm vec4_seq __retVal, u, v; } -bvec2 equal(const ivec2 v, const ivec2 u) +bvec2 equal(const ivec2 u, const ivec2 v) { - __asm vec4_seq __retVal.xy, v, u; + __asm vec4_seq __retVal.xy, u, v; } -bvec3 equal(const ivec3 v, const ivec3 u) +bvec3 equal(const ivec3 u, const ivec3 v) { - __asm vec4_seq __retVal.xyz, v, u; + __asm vec4_seq __retVal.xyz, u, v; } -bvec4 equal(const ivec4 v, const ivec4 u) +bvec4 equal(const ivec4 u, const ivec4 v) { - __asm vec4_seq __retVal, v, u; + __asm vec4_seq __retVal, u, v; } //// notEqual -bvec2 notEqual(const vec2 v, const vec2 u) +bvec2 notEqual(const vec2 u, const vec2 v) { - __asm vec4_sne __retVal.xy, v, u; + __asm vec4_sne __retVal.xy, u, v; } -bvec3 notEqual(const vec3 v, const vec3 u) +bvec3 notEqual(const vec3 u, const vec3 v) { - __asm vec4_sne __retVal.xyz, v, u; + __asm vec4_sne __retVal.xyz, u, v; } -bvec4 notEqual(const vec4 v, const vec4 u) +bvec4 notEqual(const vec4 u, const vec4 v) { - __asm vec4_sne __retVal, v, u; + __asm vec4_sne __retVal, u, v; } -bvec2 notEqual(const ivec2 v, const ivec2 u) +bvec2 notEqual(const ivec2 u, const ivec2 v) { - __asm vec4_sne __retVal.xy, v, u; + __asm vec4_sne __retVal.xy, u, v; } -bvec3 notEqual(const ivec3 v, const ivec3 u) +bvec3 notEqual(const ivec3 u, const ivec3 v) { - __asm vec4_sne __retVal.xyz, v, u; + __asm vec4_sne __retVal.xyz, u, v; } -bvec4 notEqual(const ivec4 v, const ivec4 u) +bvec4 notEqual(const ivec4 u, const ivec4 v) { - __asm vec4_sne __retVal, v, u; + __asm vec4_sne __retVal, u, v; } |