summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_emit.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-12-16 14:29:52 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:14:56 -0700
commitc2009111cc839ff3ba5df7c3a9170d31f706fa79 (patch)
tree8d90af8942ea11d491d02f2fd7f5558cd191d1d1 /src/mesa/shader/slang/slang_emit.h
parent2ced2647fb6787170545205eb01afe167c6604ea (diff)
mesa: fix some GLSL array regressions
array.length() wasn't working. Swizzle mask for accessing elements of float arrays was incorrect. (cherry picked from commit 368df1615ef65afed96a44e1f43ade8cc703696f)
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 4db4bbe562..59fb2fa890 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,