summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-04 09:32:54 -0600
committerBrian Paul <[email protected]>2008-08-04 17:14:48 -0600
commit012a1f1cf6bc46b2ac32b456a233cf1ecd25e241 (patch)
tree6eb6af65baf025b3d9708bcaf48d00558ef7baa1
parent73c3c4d1cc9b6d01cc5e75ceac9c482e4c6f192a (diff)
mesa: glsl: new bvec4 constructor
-rw-r--r--src/mesa/shader/slang/library/slang_core.gc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc
index 1f579970518..0dfc03883f2 100644
--- a/src/mesa/shader/slang/library/slang_core.gc
+++ b/src/mesa/shader/slang/library/slang_core.gc
@@ -436,6 +436,15 @@ bvec4 __constructor(const bool b1, const bool b2, const bool b3, const bool b4)
__retVal.w = b4;
}
+bvec4 __constructor(const float f1, const float f2, const float f3, const float f4)
+{
+ const float zero = 0.0;
+ __asm vec4_sne __retVal.x, f1, zero;
+ __asm vec4_sne __retVal.y, f2, zero;
+ __asm vec4_sne __retVal.z, f3, zero;
+ __asm vec4_sne __retVal.w, f4, zero;
+}
+
bvec4 __constructor(const bool b)
{
__retVal.xyzw = b.xxxx;