st/mesa: Remove the PROG_PARAM_BIT_CYL_WRAP flag. [v2]
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2012 18:10:47 +0000 (11:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:35:24 +0000 (11:35 -0700)
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 <eric@anholt.net>
src/mesa/program/prog_parameter.h
src/mesa/state_tracker/st_mesa_to_tgsi.c

index ef6731ee0db860b4e2d38a865faf4387cdacb188..b12391f66bbf2ea7f5c37fc0916c969e2eeae895 100644 (file)
@@ -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.
  */
index 8f2ba7c8e182c7b14f6e93c98422d41ea43389f9..a023058d0fd6109e2e4d0c403639f2e44138e00b 100644 (file)
@@ -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) {