diff options
author | Brian <[email protected]> | 2007-01-28 12:13:27 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-01-28 12:13:27 -0700 |
commit | 602dc1a63888af10b2ae491bdbb3afcb28004770 (patch) | |
tree | 1459ebf06885fe3411ce69422a43669fcd7411ea /src/mesa/shader/slang/slang_emit.c | |
parent | bbec2fdb3a9e55bc43f8a72d5d52a7eeb7bea6d0 (diff) |
minor clean-ups
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 568b40997db..a4c1c2fad70 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -353,7 +353,6 @@ free_temp_storage(slang_var_table *vt, slang_ir_node *n) if (n->Store->File == PROGRAM_TEMPORARY && n->Store->Index >= 0) { if (_slang_is_temp(vt, n->Store)) { _slang_free_temp(vt, n->Store); - /* XXX free(store)? */ n->Store->Index = -1; n->Store->Size = -1; } @@ -410,8 +409,6 @@ storage_to_src_reg(struct prog_src_register *src, const slang_ir_storage *st) assert(st->File != PROGRAM_UNDEFINED); assert(st->Size >= 1); assert(st->Size <= 4); - /* XXX swizzling logic here may need some work */ - /*src->Swizzle = swizzle_swizzlee(swizzle, defaultSwizzle[st->Size - 1]);*/ if (st->Swizzle != SWIZZLE_NOOP) src->Swizzle = st->Swizzle; else @@ -579,14 +576,10 @@ emit_binop(slang_var_table *vt, slang_ir_node *n, struct gl_program *prog) struct prog_instruction *inst; const slang_ir_info *info = slang_find_ir_info(n->Opcode); char *srcAnnot0 = NULL, *srcAnnot1 = NULL, *dstAnnot = NULL; - assert(info); + assert(info); assert(info->InstOpcode != OPCODE_NOP); - /* XXX check if Opcode == OPCODE_ADD, then check if either child is a MUL, - * replace with MAD instruction. - */ - #if PEEPHOLE_OPTIMIZATIONS /* Look for MAD opportunity */ if (n->Opcode == IR_ADD && n->Children[0]->Opcode == IR_MUL) { |