summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_state.h
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-03-11 15:25:52 +0100
committerMichal Krol <michal@vmware.com>2010-03-11 15:25:52 +0100
commit252dc5f897f9d124459e3afebf6686d1fe271511 (patch)
tree43ba2ac33e65bea7a90e1776f69f5dba7e9499d2 /src/gallium/include/pipe/p_state.h
parent5d4360d10cd39e28ee3b563e95959f3dd22c5242 (diff)
gallium: Use last_level for pipe_sampler_view instead of num_levels.
It's more consistent with the rest of the interfaces.
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r--src/gallium/include/pipe/p_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 3c7c0a5261..11072407d9 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -309,7 +309,7 @@ struct pipe_sampler_view
struct pipe_texture *texture; /**< texture into which this is a view */
struct pipe_context *context; /**< context this view belongs to */
unsigned first_level:8; /**< first mipmap level */
- unsigned num_levels:8; /**< number of mipamp levels */
+ unsigned last_level:8; /**< last mipmap level */
unsigned swizzle_r:3; /**< PIPE_SWIZZLE_x for red component */
unsigned swizzle_g:3; /**< PIPE_SWIZZLE_x for green component */
unsigned swizzle_b:3; /**< PIPE_SWIZZLE_x for blue component */