It's more consistent with the rest of the interfaces.
view->format = format;
view->first_level = 0;
- view->num_levels = texture->last_level + 1;
+ view->last_level = texture->last_level;
view->swizzle_r = PIPE_SWIZZLE_RED;
view->swizzle_g = PIPE_SWIZZLE_GREEN;
view->swizzle_b = PIPE_SWIZZLE_BLUE;
tic[6] = 0x03000000;
- tic[7] = (view->pipe.num_levels - view->pipe.first_level - 1) << 4;
+ tic[7] = (view->pipe.last_level - view->pipe.first_level) << 4;
tic[7] |= view->pipe.first_level;
return TRUE;
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 */