nv50: put correct value into the TIC MAX_LEVEL field
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 11 Mar 2010 16:12:10 +0000 (17:12 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 11 Mar 2010 16:31:49 +0000 (17:31 +0100)
src/gallium/drivers/nv50/nv50_tex.c

index aa885e716880d4eec9a836689f63cfe8a6eee18d..79639e81eb35f61dae9b4cbded97d749a298f8b6 100644 (file)
@@ -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;
 }