aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_emit.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-12-16 14:29:52 -0700
committerBrian Paul <[email protected]>2008-12-16 14:29:52 -0700
commit368df1615ef65afed96a44e1f43ade8cc703696f (patch)
treec45fe7f9e6d6d59ef1669e573955f19c2c97a220 /src/mesa/shader/slang/slang_emit.h
parent702b5b076b7591560e7e701e0c9ff2eeb30fa966 (diff)
mesa: fix some GLSL array regressions
array.length() wasn't working. Swizzle mask for accessing elements of float arrays was incorrect.
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.h')
-rw-r--r--src/mesa/shader/slang/slang_emit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_emit.h b/src/mesa/shader/slang/slang_emit.h
index 4db4bbe5621..59fb2fa890d 100644
--- a/src/mesa/shader/slang/slang_emit.h
+++ b/src/mesa/shader/slang/slang_emit.h
@@ -40,6 +40,10 @@ extern GLuint
_slang_swizzle_swizzle(GLuint swz1, GLuint swz2);
+extern GLuint
+_slang_var_swizzle(GLint size, GLint comp);
+
+
extern GLboolean
_slang_emit_code(slang_ir_node *n, slang_var_table *vartable,
struct gl_program *prog, GLboolean withEnd,