From: Brian Paul Date: Fri, 5 Mar 2010 23:50:48 +0000 (-0700) Subject: gallivm: added methods for getting texture depth, num mipmap levels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f4b5c5387a3a8e3c5f31f0badc943c43857683a;p=mesa.git gallivm: added methods for getting texture depth, num mipmap levels --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h index 2120775d108..5ba0925bb69 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h @@ -100,6 +100,18 @@ struct lp_sampler_dynamic_state LLVMBuilderRef builder, unsigned unit); + /** Obtain the base texture depth. */ + LLVMValueRef + (*depth)( struct lp_sampler_dynamic_state *state, + LLVMBuilderRef builder, + unsigned unit); + + /** Obtain the number of mipmap levels (minus one). */ + LLVMValueRef + (*last_level)( struct lp_sampler_dynamic_state *state, + LLVMBuilderRef builder, + unsigned unit); + LLVMValueRef (*stride)( struct lp_sampler_dynamic_state *state, LLVMBuilderRef builder,