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 2120775d1086861e88aa73f684fdcf3f79370e0a..5ba0925bb691ee5635f65775ddd4d11ae26ef0d8 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,