From 35fe920e1ec877d487e5dd33c9aea7e1ec1dbe11 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Thu, 19 Feb 2015 11:21:12 +0100 Subject: st/nine: Rework texture data allocation Some applications assume the memory for multilevel textures is allocated per continuous blocks. This patch implements that behaviour. v2: cache offsets Reviewed-by: Ilia Mirkin Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/texture9.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/state_trackers/nine/texture9.h') diff --git a/src/gallium/state_trackers/nine/texture9.h b/src/gallium/state_trackers/nine/texture9.h index 5e37a12cf4e..65db874b2a3 100644 --- a/src/gallium/state_trackers/nine/texture9.h +++ b/src/gallium/state_trackers/nine/texture9.h @@ -31,6 +31,7 @@ struct NineTexture9 struct NineBaseTexture9 base; struct NineSurface9 **surfaces; struct pipe_box dirty_rect; /* covers all mip levels */ + uint8_t *managed_buffer; }; static INLINE struct NineTexture9 * NineTexture9( void *data ) -- cgit v1.2.3