summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-13 16:31:27 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 08:46:12 -0700
commit2bdf076554f19f4f42cbfc6e14b6abd94bea3351 (patch)
tree6f6b26e678f8945b2464c05b18b4516e6a8d7802
parented8f857792d3ea9737359d098e36aed28a6adfac (diff)
mesa: remove some do-nothing GLSL code
(cherry picked from commit 4c167f8fc1e56b6c82d8917c237e70531e3d57b9)
-rw-r--r--src/mesa/shader/slang/slang_codegen.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index f9199a917f..8e1dc47b08 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -1599,19 +1599,6 @@ resolve_swizzle(const slang_operation *oper)
/**
- * As above, but produce a writemask.
- */
-static GLuint
-resolve_writemask(slang_assemble_ctx *A, const slang_operation *oper)
-{
- GLuint swizzle = resolve_swizzle(oper);
- GLuint writemask, swizzleOut;
- swizzle_to_writemask(A, swizzle, &writemask, &swizzleOut);
- return writemask;
-}
-
-
-/**
* Recursively descend through swizzle nodes to find the node's storage info.
*/
static slang_ir_storage *
@@ -1674,14 +1661,11 @@ _slang_gen_asm(slang_assemble_ctx *A, slang_operation *oper,
/* Setup n->Store to be a particular location. Otherwise, storage
* for the result (a temporary) will be allocated later.
*/
- GLuint writemask = WRITEMASK_XYZW;
slang_operation *dest_oper;
slang_ir_node *n0;
dest_oper = &oper->children[0];
- writemask = resolve_writemask(A, dest_oper);
-
n0 = _slang_gen_operation(A, dest_oper);
if (!n0)
return NULL;