No subject


Thu Dec 1 09:12:30 PST 2011


On Evergreen, it should also be 1 for some color buffers, but that's handled
in the evergreen_cb function when required.

Signed-off-by: Simon Farnsworth <simon.farnsworth at onelan.co.uk>
---

Doesn't fix my tiled scanout fun, but is needed for correctness.

 src/gallium/drivers/r600/r600_texture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 5ac39aa..6143133 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -391,6 +391,7 @@ r600_texture_create_object(struct pipe_screen *screen,
 	resource->b.b.b.screen = screen;
 	rtex->pitch_override = pitch_in_bytes_override;
 	rtex->real_format = base->format;
+	rtex->tile_type = util_format_is_depth_or_stencil(base->format) ? 1 : 0;
 
 	/* We must split depth and stencil into two separate buffers on Evergreen. */
 	if (!(base->flags & R600_RESOURCE_FLAG_TRANSFER) &&
-- 
1.7.6



More information about the mesa-dev mailing list