gallium: remove dead code related to shader semantic input/output info
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 20:05:30 +0000 (14:05 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 20:05:30 +0000 (14:05 -0600)
src/gallium/auxiliary/draw/draw_aaline.c
src/gallium/auxiliary/draw/draw_aapoint.c
src/gallium/auxiliary/draw/draw_pstipple.c
src/gallium/include/pipe/p_state.h

index bed709bad0b4ed77d0a4bce5f4cdcea66bbd78b2..f2b983374e64be5d8d65fb63de6febba3e9badfb 100644 (file)
@@ -340,12 +340,6 @@ generate_aaline_fs(struct aaline_stage *aaline)
    tgsi_dump(aaline_fs.tokens, 0);
 #endif
 
-#if 0 /* XXX remove */
-   aaline_fs.input_semantic_name[aaline_fs.num_inputs] = TGSI_SEMANTIC_GENERIC;
-   aaline_fs.input_semantic_index[aaline_fs.num_inputs] = transform.maxGeneric + 1;
-   aaline_fs.num_inputs++;
-#endif
-
    aaline->fs->aaline_fs
       = aaline->driver_create_fs_state(aaline->pipe, &aaline_fs);
 
index 4bc2b5f3e2167f4e85f3de842371ec96838ae616..67a7a8ebaba918db235947839bf181ff021b8951 100644 (file)
@@ -514,12 +514,6 @@ generate_aapoint_fs(struct aapoint_stage *aapoint)
    tgsi_dump(aapoint_fs.tokens, 0);
 #endif
 
-#if 0 /* XXX remove */
-   aapoint_fs.input_semantic_name[aapoint_fs.num_inputs] = TGSI_SEMANTIC_GENERIC;
-   aapoint_fs.input_semantic_index[aapoint_fs.num_inputs] = transform.maxGeneric + 1;
-   aapoint_fs.num_inputs++;
-#endif
-
    aapoint->fs->aapoint_fs
       = aapoint->driver_create_fs_state(aapoint->pipe, &aapoint_fs);
 
index 08f06bf2229a0194def6d7b6a533214c40f6b466..09d542002f0341f9f78dca5042e7b3c1c5903c65 100644 (file)
@@ -324,21 +324,13 @@ generate_pstip_fs(struct pstip_stage *pstip)
                          (struct tgsi_token *) pstip_fs.tokens,
                          MAX, &transform.base);
 
-#if 1 /* DEBUG */
+#if 0 /* DEBUG */
    tgsi_dump(orig_fs->tokens, 0);
    tgsi_dump(pstip_fs.tokens, 0);
 #endif
 
    pstip->sampler_unit = transform.maxSampler + 1;
 
-#if 0 /* XXX remove */
-   if (transform.wincoordInput < 0) {
-      pstip_fs.input_semantic_name[pstip_fs.num_inputs] = TGSI_SEMANTIC_POSITION;
-      pstip_fs.input_semantic_index[pstip_fs.num_inputs] = (ubyte)transform.maxInput;
-      pstip_fs.num_inputs++;
-   }
-#endif
-
    pstip->fs->pstip_fs = pstip->driver_create_fs_state(pstip->pipe, &pstip_fs);
 }
 
index bb5fab5d5f142d401d9f84e980b9d987b0d5f1bb..02c354322d3742b3cc95513f50432bb1f9d20929 100644 (file)
@@ -162,15 +162,6 @@ struct pipe_constant_buffer
 struct pipe_shader_state
 {
    const struct tgsi_token *tokens;
-#if 0
-   /* XXX these are going away */
-   ubyte num_inputs;
-   ubyte num_outputs;
-   ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */
-   ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
-   ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
-   ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];
-#endif
 };