r600g: enforce minimum stride on render target texture images

Fixes piglit/fbo_readpixels since staging upload changes.
This commit is contained in:
Keith Whitwell 2010-11-11 16:20:24 +00:00
parent 8a3c181e9c
commit 7fb16423cc
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}