projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a3c181
)
r600g: enforce minimum stride on render target texture images
author
Keith Whitwell
<keithw@vmware.com>
Thu, 11 Nov 2010 16:20:24 +0000
(16:20 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 11 Nov 2010 16:20:24 +0000
(16:20 +0000)
Fixes piglit/fbo_readpixels since staging upload changes.
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index 56313e992d87cab0390420c3d1bcc47828fc5135..e719f7fb9836ac09b81e931fbd96b9926ae2ca7e 100644
(file)
--- 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;
}