summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-05 16:50:48 -0700
committerBrian Paul <brianp@vmware.com>2010-03-05 16:50:48 -0700
commit7f4b5c5387a3a8e3c5f31f0badc943c43857683a (patch)
treee872e438efef31aa0c8732a4cfbed66097855f6a
parent6bc644fe62adad6656be3f29c118045fc5630510 (diff)
gallivm: added methods for getting texture depth, num mipmap levels
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h
index 2120775d10..5ba0925bb6 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,