>From discussion on IRC, tile_type should be 1 for depth or stencil textures.

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.farnswo...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to