vc4: Add support for all the texture and FBO formats we can

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

Now that tiling is in place, we can expose the other formats. Depth is still broken (need to make changes in the shader), but if you don't expose it things crash all over. SNORM is dropped, but we could re-add it later with some shader fixes to handle converting between [0,1] and [-1,1].

b064c91 vc4: Add support for all the texture and FBO formats we can.
src/gallium/drivers/vc4/Makefile.sources | 1 +
src/gallium/drivers/vc4/vc4_context.c | 6 +-
src/gallium/drivers/vc4/vc4_context.h | 6 ++
src/gallium/drivers/vc4/vc4_formats.c | 169 ++++++++++++++++++++++++++++++
src/gallium/drivers/vc4/vc4_program.c | 32 +++---
src/gallium/drivers/vc4/vc4_resource.c | 9 +-
src/gallium/drivers/vc4/vc4_screen.c | 52 +--------
7 files changed, 203 insertions(+), 72 deletions(-)

Upstream: cgit.freedesktop.org


  • Share