summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-04-09 06:48:04 -0700
committerCorbin Simpson <[email protected]>2010-04-09 06:52:18 -0700
commit51c40680518b0d76d2eae373a474392d18be05d7 (patch)
tree2f8e4aba43d565cea0fc0bab93f81a5fc47b0e3d /src/gallium/state_trackers/xorg
parent54526154c5b02be0fbae6b0dad766c6be1bee21c (diff)
st/xorg: Fix thinko.
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_driver.c1
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 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;
}