projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc644f
)
gallivm: added methods for getting texture depth, num mipmap levels
author
Brian Paul
<brianp@vmware.com>
Fri, 5 Mar 2010 23:50:48 +0000
(16:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 5 Mar 2010 23:50:48 +0000
(16:50 -0700)
src/gallium/auxiliary/gallivm/lp_bld_sample.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_sample.h
b/src/gallium/auxiliary/gallivm/lp_bld_sample.h
index 2120775d1086861e88aa73f684fdcf3f79370e0a..5ba0925bb691ee5635f65775ddd4d11ae26ef0d8 100644
(file)
--- 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,