summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_sample.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-09-23 19:16:33 -0600
committerBrian Paul <brianp@vmware.com>2010-09-24 09:48:32 -0600
commitd1a4dd4217a4b8b018d4d9a161afece640d75694 (patch)
treea4ce8e0e63a5a16a14d0147a00123a7f67824041 /src/gallium/auxiliary/gallivm/lp_bld_sample.h
parent61b7da074e2faebf03d3dfc30e910ee1367bcd5a (diff)
llvmpipe: make texture border_color dynamic state
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h
index 661f35f6de..9a19e87571 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h
@@ -82,7 +82,6 @@ struct lp_sampler_static_state
unsigned compare_mode:1;
unsigned compare_func:3;
unsigned normalized_coords:1;
- float border_color[4];
unsigned min_max_lod_equal:1; /**< min_lod == max_lod ? */
float min_max_lod; /**< only valid when min_max_lod_equal=1 */
@@ -158,6 +157,11 @@ struct lp_sampler_dynamic_state
LLVMValueRef
(*lod_bias)(const struct lp_sampler_dynamic_state *state,
LLVMBuilderRef builder, unsigned unit);
+
+ /** Obtain texture border color */
+ LLVMValueRef
+ (*border_color)(const struct lp_sampler_dynamic_state *state,
+ LLVMBuilderRef builder, unsigned unit);
};
@@ -178,6 +182,9 @@ struct lp_build_sample_context
struct lp_type float_type;
struct lp_build_context float_bld;
+ /** float vector type */
+ struct lp_build_context float_vec_bld;
+
/** regular scalar float type */
struct lp_type int_type;
struct lp_build_context int_bld;