From: Eric Anholt Date: Mon, 3 May 2010 23:20:04 +0000 (-0700) Subject: ir_to_mesa: Remove dead code from when this was an ARB_fp printer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c554d7cedee51bc170916c554c5f3dda51b3ab1e;p=mesa.git ir_to_mesa: Remove dead code from when this was an ARB_fp printer. --- diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index b55e5df9f66..feb7f454679 100644 --- a/ir_to_mesa.cpp +++ b/ir_to_mesa.cpp @@ -107,30 +107,6 @@ ir_to_mesa_visitor::create_tree(int op, struct mbtree *left, struct mbtree *righ return tree; } -const char * -produce_swizzle(int8_t *swizzle, const char *reg_name, - const char **swizzle_reg_name) -{ - if (swizzle[0] == 0 && - swizzle[1] == 1 && - swizzle[2] == 2 && - swizzle[3] == 3) - { - *swizzle_reg_name = reg_name; - } else { - char swizzle_letters[4] = { 'x', 'y', 'z', 'w' }; - char *temp; - asprintf(&temp, "%s.%c%c%c%c", - reg_name, - swizzle_letters[swizzle[0]], - swizzle_letters[swizzle[1]], - swizzle_letters[swizzle[2]], - swizzle_letters[swizzle[3]]); - *swizzle_reg_name = temp; - } - return *swizzle_reg_name; -} - /** * In the initial pass of codegen, we assign temporary numbers to * intermediate results. (not SSA -- variable assignments will reuse diff --git a/ir_to_mesa.h b/ir_to_mesa.h index cdf4f2c621a..e4c6940a338 100644 --- a/ir_to_mesa.h +++ b/ir_to_mesa.h @@ -61,8 +61,6 @@ struct mbtree { struct mbtree *right; void *state; uint16_t op; - const char *reg_name; - const char *swizzle_reg_name; class ir_to_mesa_visitor *v; /**