diff options
author | Michal Krol <[email protected]> | 2010-03-11 15:25:52 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-03-11 15:25:52 +0100 |
commit | 252dc5f897f9d124459e3afebf6686d1fe271511 (patch) | |
tree | 43ba2ac33e65bea7a90e1776f69f5dba7e9499d2 /src/gallium/drivers/nv50/nv50_tex.c | |
parent | 5d4360d10cd39e28ee3b563e95959f3dd22c5242 (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/drivers/nv50/nv50_tex.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_tex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c index c5029bad2d8..7ed73eac50f 100644 --- a/src/gallium/drivers/nv50/nv50_tex.c +++ b/src/gallium/drivers/nv50/nv50_tex.c @@ -152,7 +152,7 @@ nv50_tex_construct(struct nv50_sampler_view *view) 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; |