r600g: enforce minimum stride on render target texture images
Fixes piglit/fbo_readpixels since staging upload changes.
This commit is contained in:
parent
8a3c181e9c
commit
7fb16423cc
|
@ -169,6 +169,10 @@ static unsigned r600_texture_get_stride(struct pipe_screen *screen,
|
||||||
stride = util_format_get_stride(ptex->format, width);
|
stride = util_format_get_stride(ptex->format, width);
|
||||||
if (chipc == EVERGREEN)
|
if (chipc == EVERGREEN)
|
||||||
stride = align(stride, 512);
|
stride = align(stride, 512);
|
||||||
|
|
||||||
|
if (ptex->bind & PIPE_BIND_RENDER_TARGET)
|
||||||
|
stride = align(stride, 512);
|
||||||
|
|
||||||
return stride;
|
return stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue