From: Corbin Simpson Date: Fri, 9 Apr 2010 13:48:04 +0000 (-0700) Subject: st/xorg: Fix thinko. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51c40680518b0d76d2eae373a474392d18be05d7;p=mesa.git st/xorg: Fix thinko. --- diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c index d5dd0d761d0..a59e8dcad51 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; }