etnaviv: GC7000: Factor out state based texture functionality

Graphics / Mesa 3D Graphics Library / Mesa - Wladimir J. van der Laan [gmail.com] - 30 November 2017 06:33 EST

Prepare for two texture handling paths, the descriptor-based path will be added in a future commit. These are structured so that the texture implementation handles its own state emission.

f1a9a724f9 etnaviv: GC7000: Factor out state based texture functionality
src/gallium/drivers/etnaviv/Makefile.sources | 2 +
src/gallium/drivers/etnaviv/etnaviv_context.h | 6 +
src/gallium/drivers/etnaviv/etnaviv_emit.c | 107 +------
src/gallium/drivers/etnaviv/etnaviv_texture.c | 194 ++----------
src/gallium/drivers/etnaviv/etnaviv_texture.h | 40 +--
.../drivers/etnaviv/etnaviv_texture_state.c | 329 +++++++++++++++++++++
.../drivers/etnaviv/etnaviv_texture_state.h | 82 +++++
src/gallium/drivers/etnaviv/meson.build | 2 +
8 files changed, 454 insertions(+), 308 deletions(-)

Upstream: cgit.freedesktop.org


  • Share