gallivm: Drop pos arg from lp_build_tgsi_soa.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 18 Apr 2013 08:55:35 +0000 (09:55 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 18 Apr 2013 13:18:13 +0000 (14:18 +0100)
Never used.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 8e3ea8897d0297a93c83bc73763969ad7daa30c1..e0c07057441c5cb0fa43a36386e8fcc413ac6bb5 100644 (file)
@@ -593,7 +593,6 @@ generate_vs(struct draw_llvm_variant *variant,
                      NULL /*struct lp_build_mask_context *mask*/,
                      consts_ptr,
                      system_values,
-                     NULL /*pos*/,
                      inputs,
                      outputs,
                      sampler,
@@ -2023,7 +2022,6 @@ draw_gs_llvm_generate(struct draw_llvm *llvm,
                      &mask,
                      consts_ptr,
                      &system_values,
-                     NULL /*pos*/,
                      NULL,
                      outputs,
                      sampler,
index 78a1f0ea4eeefa069b1655726fe2208cf67cd664..175b6a9f0f65c8481979e0e047a8d7914a69cbd5 100644 (file)
@@ -222,7 +222,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
                   struct lp_build_mask_context *mask,
                   LLVMValueRef consts_ptr,
                   const struct lp_bld_tgsi_system_values *system_values,
-                  const LLVMValueRef *pos,
                   const LLVMValueRef (*inputs)[4],
                   LLVMValueRef (*outputs)[4],
                   struct lp_build_sampler_soa *sampler,
@@ -400,7 +399,6 @@ struct lp_build_tgsi_soa_context
    LLVMValueRef max_output_vertices_vec;
 
    LLVMValueRef consts_ptr;
-   const LLVMValueRef *pos;
    const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS];
    LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS];
 
index ea7dec727d2f7189dda33b9e191d9d1c738b96db..af1b8aa76aee65ad9263ef45216c4e096d7f6dfc 100644 (file)
@@ -2742,7 +2742,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
                   struct lp_build_mask_context *mask,
                   LLVMValueRef consts_ptr,
                   const struct lp_bld_tgsi_system_values *system_values,
-                  const LLVMValueRef *pos,
                   const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS],
                   LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS],
                   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.elem_bld, gallivm, lp_elem_type(type));
    bld.mask = mask;
-   bld.pos = pos;
    bld.inputs = inputs;
    bld.outputs = outputs;
    bld.consts_ptr = consts_ptr;
index ea41bd647204eecefaa6b7922431e254c90a8c94..cdf246fdcdbde45ac67d2413372dd070364fb555 100644 (file)
@@ -353,7 +353,7 @@ generate_fs(struct gallivm_state *gallivm,
    /* Build the actual shader */
    lp_build_tgsi_soa(gallivm, tokens, type, &mask,
                      consts_ptr, &system_values,
-                     interp->pos, interp->inputs,
+                     interp->inputs,
                      outputs, sampler, &shader->info.base, NULL);
 
    /* Alpha test */
@@ -606,7 +606,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
    /* Build the actual shader */
    lp_build_tgsi_soa(gallivm, tokens, type, &mask,
                      consts_ptr, &system_values,
-                     interp->pos, interp->inputs,
+                     interp->inputs,
                      outputs, sampler, &shader->info.base, NULL);
 
    /* Alpha test */