[Nouveau] [PATCH 3/5] drm/nv50: fix align typo for g9x
Maarten Maathuis
madman2003 at gmail.com
Sat Dec 26 13:43:06 PST 2009
- The resulting misallignment was causing stuff to be overwritten everywhere,
resulting in card hangs eventually.
Signed-off-by: Maarten Maathuis <madman2003 at gmail.com>
---
drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index a052016..0a08ece 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -83,7 +83,7 @@ nouveau_bo_fixup_align(struct drm_device *dev,
} else if (dev_priv->chipset >= 0x90) {
*size = roundup(*size, 16384);
*size += 3 * 16384;
- *align = 12 * 16834;
+ *align = 12 * 16384;
} else {
*size = roundup(*size, 8192);
*size += 3 * 8192;
--
1.6.6.rc4
More information about the Nouveau
mailing list