gallivm: Drop pos arg from lp_build_tgsi_soa.

Never used.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
José Fonseca 2013-04-18 09:55:35 +01:00
parent 34bec4a251
commit 6e833d4d09
4 changed files with 2 additions and 8 deletions

View File

@ -593,7 +593,6 @@ generate_vs(struct draw_llvm_variant *variant,
NULL /*struct lp_build_mask_context *mask*/, NULL /*struct lp_build_mask_context *mask*/,
consts_ptr, consts_ptr,
system_values, system_values,
NULL /*pos*/,
inputs, inputs,
outputs, outputs,
sampler, sampler,
@ -2023,7 +2022,6 @@ draw_gs_llvm_generate(struct draw_llvm *llvm,
&mask, &mask,
consts_ptr, consts_ptr,
&system_values, &system_values,
NULL /*pos*/,
NULL, NULL,
outputs, outputs,
sampler, sampler,

View File

@ -222,7 +222,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
struct lp_build_mask_context *mask, struct lp_build_mask_context *mask,
LLVMValueRef consts_ptr, LLVMValueRef consts_ptr,
const struct lp_bld_tgsi_system_values *system_values, const struct lp_bld_tgsi_system_values *system_values,
const LLVMValueRef *pos,
const LLVMValueRef (*inputs)[4], const LLVMValueRef (*inputs)[4],
LLVMValueRef (*outputs)[4], LLVMValueRef (*outputs)[4],
struct lp_build_sampler_soa *sampler, struct lp_build_sampler_soa *sampler,
@ -400,7 +399,6 @@ struct lp_build_tgsi_soa_context
LLVMValueRef max_output_vertices_vec; LLVMValueRef max_output_vertices_vec;
LLVMValueRef consts_ptr; LLVMValueRef consts_ptr;
const LLVMValueRef *pos;
const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS]; const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS];
LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS]; LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS];

View File

@ -2742,7 +2742,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
struct lp_build_mask_context *mask, struct lp_build_mask_context *mask,
LLVMValueRef consts_ptr, LLVMValueRef consts_ptr,
const struct lp_bld_tgsi_system_values *system_values, const struct lp_bld_tgsi_system_values *system_values,
const LLVMValueRef *pos,
const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS], const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS],
LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS], LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS],
struct lp_build_sampler_soa *sampler, struct lp_build_sampler_soa *sampler,
@ -2766,7 +2765,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
lp_build_context_init(&bld.bld_base.int_bld, gallivm, lp_int_type(type)); lp_build_context_init(&bld.bld_base.int_bld, gallivm, lp_int_type(type));
lp_build_context_init(&bld.elem_bld, gallivm, lp_elem_type(type)); lp_build_context_init(&bld.elem_bld, gallivm, lp_elem_type(type));
bld.mask = mask; bld.mask = mask;
bld.pos = pos;
bld.inputs = inputs; bld.inputs = inputs;
bld.outputs = outputs; bld.outputs = outputs;
bld.consts_ptr = consts_ptr; bld.consts_ptr = consts_ptr;

View File

@ -353,7 +353,7 @@ generate_fs(struct gallivm_state *gallivm,
/* Build the actual shader */ /* Build the actual shader */
lp_build_tgsi_soa(gallivm, tokens, type, &mask, lp_build_tgsi_soa(gallivm, tokens, type, &mask,
consts_ptr, &system_values, consts_ptr, &system_values,
interp->pos, interp->inputs, interp->inputs,
outputs, sampler, &shader->info.base, NULL); outputs, sampler, &shader->info.base, NULL);
/* Alpha test */ /* Alpha test */
@ -606,7 +606,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
/* Build the actual shader */ /* Build the actual shader */
lp_build_tgsi_soa(gallivm, tokens, type, &mask, lp_build_tgsi_soa(gallivm, tokens, type, &mask,
consts_ptr, &system_values, consts_ptr, &system_values,
interp->pos, interp->inputs, interp->inputs,
outputs, sampler, &shader->info.base, NULL); outputs, sampler, &shader->info.base, NULL);
/* Alpha test */ /* Alpha test */