diff options
author | Roland Scheidegger <[email protected]> | 2013-01-25 16:33:43 -0800 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-01-28 06:58:06 -0800 |
commit | cbf0f666311a5cb2720a4d6f4c540da1dd33e418 (patch) | |
tree | 3c2009de6b8dc97d983bb38dfb55f8b3fc8b0574 /src/gallium/auxiliary/gallivm/lp_bld_sample.h | |
parent | c789b981b244333cfc903bcd1e2fefc010500013 (diff) |
gallivm,draw,llvmpipe: mass rename of unit->texture_unit/sampler_unit
Make it obvious what "unit" this is (no change in functionality).
draw still uses "unit" in places where it changes the shader by adding
texture sampling itself - it seems like this can't work with shaders
using dx10-style sample opcodes (can't mix gl-style and dx10-style
sample instructions in a shader).
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h index d0207aa471e..77ce00869be 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h @@ -131,77 +131,77 @@ struct lp_sampler_dynamic_state LLVMValueRef (*width)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain the base texture height (returns int32) */ LLVMValueRef (*height)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain the base texture depth (returns int32) */ LLVMValueRef (*depth)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain the first mipmap level (base level) (returns int32) */ LLVMValueRef (*first_level)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain the number of mipmap levels minus one (returns int32) */ LLVMValueRef (*last_level)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain stride in bytes between image rows/blocks (returns int32) */ LLVMValueRef (*row_stride)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain stride in bytes between image slices (returns int32) */ LLVMValueRef (*img_stride)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain pointer to base of texture */ LLVMValueRef (*base_ptr)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /** Obtain pointer to array of mipmap offsets */ LLVMValueRef (*mip_offsets)( const struct lp_sampler_dynamic_state *state, struct gallivm_state *gallivm, - unsigned unit); + unsigned texture_unit); /* These are callbacks for sampler state */ /** Obtain texture min lod (returns float) */ LLVMValueRef (*min_lod)(const struct lp_sampler_dynamic_state *state, - struct gallivm_state *gallivm, unsigned unit); + struct gallivm_state *gallivm, unsigned sampler_unit); /** Obtain texture max lod (returns float) */ LLVMValueRef (*max_lod)(const struct lp_sampler_dynamic_state *state, - struct gallivm_state *gallivm, unsigned unit); + struct gallivm_state *gallivm, unsigned sampler_unit); /** Obtain texture lod bias (returns float) */ LLVMValueRef (*lod_bias)(const struct lp_sampler_dynamic_state *state, - struct gallivm_state *gallivm, unsigned unit); + struct gallivm_state *gallivm, unsigned sampler_unit); /** Obtain texture border color (returns ptr to float[4]) */ LLVMValueRef (*border_color)(const struct lp_sampler_dynamic_state *state, - struct gallivm_state *gallivm, unsigned unit); + struct gallivm_state *gallivm, unsigned sampler_unit); }; @@ -375,13 +375,13 @@ lp_build_lod_selector(struct lp_build_sample_context *bld, void lp_build_nearest_mip_level(struct lp_build_sample_context *bld, - unsigned unit, + unsigned texture_unit, LLVMValueRef lod, LLVMValueRef *level_out); void lp_build_linear_mip_levels(struct lp_build_sample_context *bld, - unsigned unit, + unsigned texture_unit, LLVMValueRef lod_ipart, LLVMValueRef *lod_fpart_inout, LLVMValueRef *level0_out, @@ -486,7 +486,7 @@ lp_build_size_query_soa(struct gallivm_state *gallivm, const struct lp_static_texture_state *static_state, struct lp_sampler_dynamic_state *dynamic_state, struct lp_type int_type, - unsigned unit, + unsigned texture_unit, LLVMValueRef explicit_lod, LLVMValueRef *sizes_out); |