diff options
author | Brian Paul <[email protected]> | 2008-12-16 14:29:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-12-16 14:29:52 -0700 |
commit | 368df1615ef65afed96a44e1f43ade8cc703696f (patch) | |
tree | c45fe7f9e6d6d59ef1669e573955f19c2c97a220 /src/mesa/shader/slang/slang_emit.h | |
parent | 702b5b076b7591560e7e701e0c9ff2eeb30fa966 (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.h | 4 |
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, |