diff options
author | Brian Paul <[email protected]> | 2008-07-29 17:29:30 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-29 17:29:30 -0600 |
commit | 1638edb3256b3b4bd8bc2eb65d02573601ef9a44 (patch) | |
tree | 6ba3be496e6755148d3dcab371decc90083d5d2e /src/mesa/shader/slang/slang_emit.c | |
parent | 6225e51a73a51fa46d839a429f254d7786b1fd18 (diff) |
mesa: glsl: assorted fixes for resolving polymorphic functions
Plus,
- fix some issues in casting function arguments to format param types.
- fix some vec/mat constructor bugs
- find/report more syntax/semantic errors
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 9bff055ad56..f1af6902ea1 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -256,6 +256,12 @@ storage_to_src_reg(struct prog_src_register *src, const slang_ir_storage *st) } assert(st->File >= 0); +#if 1 /* XXX temporary */ + if (st->File == PROGRAM_UNDEFINED) { + slang_ir_storage *st0 = (slang_ir_storage *) st; + st0->File = PROGRAM_TEMPORARY; + } +#endif assert(st->File < PROGRAM_UNDEFINED); src->File = st->File; |