Mesa (master): r600g: enforce minimum stride on render target texture images
Keith Whitwell
keithw at kemper.freedesktop.org
Thu Nov 11 16:22:22 UTC 2010
Module: Mesa
Branch: master
Commit: 7fb16423cc325efcdcf6e4954a5ac71d8f96dbf8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fb16423cc325efcdcf6e4954a5ac71d8f96dbf8
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Nov 11 16:20:24 2010 +0000
r600g: enforce minimum stride on render target texture images
Fixes piglit/fbo_readpixels since staging upload changes.
---
src/gallium/drivers/r600/r600_texture.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 56313e9..e719f7f 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -169,6 +169,10 @@ static unsigned r600_texture_get_stride(struct pipe_screen *screen,
stride = util_format_get_stride(ptex->format, width);
if (chipc == EVERGREEN)
stride = align(stride, 512);
+
+ if (ptex->bind & PIPE_BIND_RENDER_TARGET)
+ stride = align(stride, 512);
+
return stride;
}
More information about the mesa-commit
mailing list