OSDN Git Service

st/xorg: Fix thinko.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 9 Apr 2010 13:48:04 +0000 (06:48 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 9 Apr 2010 13:52:18 +0000 (06:52 -0700)
src/gallium/state_trackers/xorg/xorg_driver.c

index d5dd0d7..a59e8dc 100644 (file)
@@ -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;
     }