Module: Mesa
Branch: gallium-sampler-view
Commit: 9e9839bd04b5d4e554a1a9ede22ccf44fc1306b6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e9839bd04b5d4e554a1a9ede22ccf44fc1306b6

Author: Christoph Bumiller <[email protected]>
Date:   Thu Mar 11 17:12:10 2010 +0100

nv50: put correct value into the TIC MAX_LEVEL field

---

 src/gallium/drivers/nv50/nv50_tex.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_tex.c 
b/src/gallium/drivers/nv50/nv50_tex.c
index aa885e7..79639e8 100644
--- a/src/gallium/drivers/nv50/nv50_tex.c
+++ b/src/gallium/drivers/nv50/nv50_tex.c
@@ -152,8 +152,7 @@ nv50_tex_construct(struct nv50_sampler_view *view)
 
        tic[6] = 0x03000000;
 
-       tic[7] = (view->pipe.last_level - view->pipe.first_level) << 4;
-       tic[7] |= view->pipe.first_level;
+       tic[7] = (view->pipe.last_level << 4) | view->pipe.first_level;
 
        return TRUE;
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to