summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-10 09:44:54 -0600
committerBrian <[email protected]>2007-10-10 09:44:54 -0600
commit44200421e8e15e603464e4a3e9d10f46787fc737 (patch)
tree8b2dd82fe494a88a59838b6ee71803212945f3ca /src/mesa/state_tracker
parent013ce15595df19005996046ed4f9f42771299d14 (diff)
Merge tgsi_mesa_compile_fp_program() and tgsi_mesa_compile_vp_program() into tgsi_translate_mesa_program().
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_program.c56
1 files changed, 29 insertions, 27 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 1c5af7b75fa..5b6fa70dff4 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -233,19 +233,21 @@ st_translate_vertex_program(struct st_context *st,
/* XXX: fix static allocation of tokens:
*/
- tgsi_mesa_compile_vp_program( &stvp->Base,
- /* inputs */
- vs.num_inputs,
- stvp->input_to_index,
- vs.input_semantic_name,
- vs.input_semantic_index,
- /* outputs */
- vs.num_outputs,
- outputMapping,
- vs.output_semantic_name,
+ tgsi_translate_mesa_program( TGSI_PROCESSOR_VERTEX,
+ &stvp->Base.Base,
+ /* inputs */
+ vs.num_inputs,
+ stvp->input_to_index,
+ vs.input_semantic_name,
+ vs.input_semantic_index,
+ NULL,
+ /* outputs */
+ vs.num_outputs,
+ outputMapping,
+ vs.output_semantic_name,
vs.output_semantic_index,
- /* tokenized result */
- tokensOut, maxTokens);
+ /* tokenized result */
+ tokensOut, maxTokens);
vs.tokens = tokensOut;
cso = st_cached_vs_state(st, &vs);
@@ -386,21 +388,21 @@ st_translate_fragment_program(struct st_context *st,
/* XXX: fix static allocation of tokens:
*/
- tgsi_mesa_compile_fp_program( &stfp->Base,
- /* inputs */
- fs.num_inputs,
- inputMapping,
- fs.input_semantic_name,
- fs.input_semantic_index,
- interpMode,
- /* outputs */
- fs.num_outputs,
- outputMapping,
- fs.output_semantic_name,
- fs.output_semantic_index,
- /* tokenized result */
- tokensOut, maxTokens);
-
+ tgsi_translate_mesa_program( TGSI_PROCESSOR_FRAGMENT,
+ &stfp->Base.Base,
+ /* inputs */
+ fs.num_inputs,
+ inputMapping,
+ fs.input_semantic_name,
+ fs.input_semantic_index,
+ interpMode,
+ /* outputs */
+ fs.num_outputs,
+ outputMapping,
+ fs.output_semantic_name,
+ fs.output_semantic_index,
+ /* tokenized result */
+ tokensOut, maxTokens);
fs.tokens = tokensOut;