summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-20 21:48:52 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-20 21:48:52 (GMT)
commit7997279bc22d30bf1d1a30a567bda33ecc9aeb2d (patch)
treeb64fa0752888bdde01b747763da7ee9a2822c348
parent1315bcdd1e2add0ce26f0cb9a4d2a95477434315 (diff)
downloadQt-7997279bc22d30bf1d1a30a567bda33ecc9aeb2d.zip
Qt-7997279bc22d30bf1d1a30a567bda33ecc9aeb2d.tar.gz
Qt-7997279bc22d30bf1d1a30a567bda33ecc9aeb2d.tar.bz2
Increase PowerVR memory alignment from 8 to 32 for SGX systems.
Increasing the alignment does not seem to affect MBX.
-rw-r--r--src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
index 17345a9..a9c22ef 100644
--- a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
+++ b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
@@ -662,7 +662,7 @@ int pvrQwsAllocBuffers(PvrQwsDrawable *drawable)
PVR2DMemFree(pvrQwsDisplay.context, drawable->backBuffers[index]);
}
}
- drawable->stridePixels = (drawable->rect.width + 7) & ~7;
+ drawable->stridePixels = (drawable->rect.width + 31) & ~31;
drawable->strideBytes =
drawable->stridePixels *
pvrQwsDisplay.screens[drawable->screen].bytesPerPixel;