vc4: Add support for texture tiling

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 22 August 2014 12:16 UTC

This still treats everything as RGBA8888 for the most part, same as before. This is a prerequisite for handling other texture formats, since only RGBA8888 has a raster-layout mode.

3a1efcc vc4: Add support for texture tiling.
src/gallium/drivers/vc4/Makefile.sources | 1 +
src/gallium/drivers/vc4/vc4_context.c | 6 +-
src/gallium/drivers/vc4/vc4_program.c | 6 +-
src/gallium/drivers/vc4/vc4_resource.c | 137 ++++++++-
src/gallium/drivers/vc4/vc4_resource.h | 20 +-
src/gallium/drivers/vc4/vc4_screen.c | 2 +-
src/gallium/drivers/vc4/vc4_screen.h | 2 -
src/gallium/drivers/vc4/vc4_simulator_validate.c | 143 +++++++---
src/gallium/drivers/vc4/vc4_tiling.c | 321 ++++++++++++++++++++++
src/gallium/drivers/vc4/vc4_tiling.h | 41 +++
10 files changed, 626 insertions(+), 53 deletions(-)

Upstream: cgit.freedesktop.org


  • Share