From: Kenneth Graunke Date: Mon, 15 Oct 2012 18:10:47 +0000 (-0700) Subject: st/mesa: Remove the PROG_PARAM_BIT_CYL_WRAP flag. [v2] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bb6f15f79a58e145817edf4894d53402ebdd5ba;p=mesa.git 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 --- 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) {