gallivm: added methods for getting texture depth, num mipmap levels
authorBrian Paul <brianp@vmware.com>
Fri, 5 Mar 2010 23:50:48 +0000 (16:50 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 5 Mar 2010 23:50:48 +0000 (16:50 -0700)
src/gallium/auxiliary/gallivm/lp_bld_sample.h

index 2120775..5ba0925 100644 (file)
@@ -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,