projects
/
platform
/
upstream
/
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
2120775
..
5ba0925
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,