From 5bb6f15f79a58e145817edf4894d53402ebdd5ba Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 15 Oct 2012 11:10:47 -0700 Subject: [PATCH] st/mesa: Remove the PROG_PARAM_BIT_CYL_WRAP flag. [v2] Nobody ever set the flag, which makes this dead code. v2: Leave the ureg_DECL_fs_input_cyl function in place, even though it's unused, since VMWare uses it for their internal projects. Reviewed-by: Eric Anholt --- src/mesa/program/prog_parameter.h | 8 -------- src/mesa/state_tracker/st_mesa_to_tgsi.c | 17 ++++------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h index ef6731ee0db..b12391f66bb 100644 --- a/src/mesa/program/prog_parameter.h +++ b/src/mesa/program/prog_parameter.h @@ -40,14 +40,6 @@ extern "C" { #endif -/** - * Program parameter flags - */ -/*@{*/ -#define PROG_PARAM_BIT_CYL_WRAP 0x10 /**< XXX gallium debug */ -/*@}*/ - - /** * Actual data for constant values of parameters. */ diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 8f2ba7c8e18..a023058d0fd 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -1052,19 +1052,10 @@ st_translate_mesa_program( */ if (procType == TGSI_PROCESSOR_FRAGMENT) { for (i = 0; i < numInputs; i++) { - if (program->InputFlags[0] & PROG_PARAM_BIT_CYL_WRAP) { - t->inputs[i] = ureg_DECL_fs_input_cyl(ureg, - inputSemanticName[i], - inputSemanticIndex[i], - interpMode[i], - TGSI_CYLINDRICAL_WRAP_X); - } - else { - t->inputs[i] = ureg_DECL_fs_input(ureg, - inputSemanticName[i], - inputSemanticIndex[i], - interpMode[i]); - } + t->inputs[i] = ureg_DECL_fs_input(ureg, + inputSemanticName[i], + inputSemanticIndex[i], + interpMode[i]); } if (program->InputsRead & FRAG_BIT_WPOS) { -- 2.30.2