aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-09-15 06:09:21 +0200
committerFrancisco Jerez <[email protected]>2010-09-16 19:44:21 +0200
commit0a6cfa1668af7c5541c9d56436776514a6c493d9 (patch)
treebdc1b761ac02d21e60e80dafda80745b6e361ca0 /src
parentbec626ff63ad1d5c7c3e4b5b1d7a741e4f7d55ac (diff)
dri/nv04: Align SIFM transfer dimensions.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv04_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv04_surface.c b/src/mesa/drivers/dri/nouveau/nv04_surface.c
index e3febf7d2f7..9e7dcf0a88f 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_surface.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_surface.c
@@ -255,7 +255,7 @@ nv04_surface_copy_swizzle(GLcontext *ctx,
BEGIN_RING(chan, sifm,
NV03_SCALED_IMAGE_FROM_MEMORY_SIZE, 4);
- OUT_RING(chan, sub_h << 16 | sub_w);
+ OUT_RING(chan, align(sub_h, 2) << 16 | align(sub_w, 2));
OUT_RING(chan, src->pitch |
NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_ORIGIN_CENTER |
NV03_SCALED_IMAGE_FROM_MEMORY_FORMAT_FILTER_POINT_SAMPLE);