From: Brian Date: Sun, 28 Jan 2007 19:13:27 +0000 (-0700) Subject: minor clean-ups X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=602dc1a63888af10b2ae491bdbb3afcb28004770;p=mesa.git minor clean-ups --- 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) {