summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-12-12 16:02:31 -0700
committerBrian Paul <[email protected]>2009-01-06 09:11:40 -0700
commit70050191ed39bab72b90ec891c413669d0f5a33f (patch)
tree1b185e546d237004f551cac39a0e2c792effa4fe /src
parent9d6804bd2820fe76a46e9f9d6ae0f8ff0b20aead (diff)
mesa: remove unneeded swizzle init code in glsl compiler
(cherry picked from commit 240e211c711b0ebfe6c3daa6cb70a3fa8fc8b656)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index cffa726821b..d0e6b6cc5e3 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2704,24 +2704,6 @@ _slang_gen_var_decl(slang_assemble_ctx *A, slang_variable *var,
store->Size = sz;
}
- /* setup default swizzle for storing the variable */
- /* XXX this may not be needed anymore - remove & test */
- switch (store->Size) {
- case 2:
- store->Swizzle = MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y,
- SWIZZLE_NIL, SWIZZLE_NIL);
- break;
- case 3:
- store->Swizzle = MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y,
- SWIZZLE_Z, SWIZZLE_NIL);
- break;
- default:
- /* Note that float-sized vars may be allocated in any x/y/z/w
- * slot, but that won't be determined until code emit time.
- */
- store->Swizzle = SWIZZLE_NOOP;
- }
-
/* if there's an initializer, generate IR for the expression */
if (initializer) {
const char *varName = (const char *) var->a_name;