Module: Mesa
Branch: master
Commit: 51c40680518b0d76d2eae373a474392d18be05d7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=51c40680518b0d76d2eae373a474392d18be05d7

Author: Corbin Simpson <mostawesomed...@gmail.com>
Date:   Fri Apr  9 06:48:04 2010 -0700

st/xorg: Fix thinko.

---

 src/gallium/state_trackers/xorg/xorg_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c 
b/src/gallium/state_trackers/xorg/xorg_driver.c
index d5dd0d7..a59e8dc 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -678,6 +678,7 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, 
char **argv)
     if (ms->screen) {
        int max;
        max = ms->screen->get_param(ms->screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS);
+       max = 1 << (max - 1);
        max_width = max < max_width ? max : max_width;
        max_height = max < max_height ? max : max_height;
     }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to