st/nine: Rework texture data allocation
authorAxel Davy <axel.davy@ens.fr>
Thu, 19 Feb 2015 10:21:12 +0000 (11:21 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:11 +0000 (08:28 +0200)
commit35fe920e1ec877d487e5dd33c9aea7e1ec1dbe11
tree81d5fb39858295ed6655b13bad93744f67261d6f
parent54f8e8a18da58c85a2f515d5fd0552fa4f5547bb
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 <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/cubetexture9.c
src/gallium/state_trackers/nine/cubetexture9.h
src/gallium/state_trackers/nine/nine_pipe.h
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/surface9.h
src/gallium/state_trackers/nine/texture9.c
src/gallium/state_trackers/nine/texture9.h