gallium: Add a transcode_astc driconf option

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [jlekstrand.net] - 27 April 2021 19:16 UTC

This is similar to the transcode_etc flag in that it changes the ASTC fallback (when present) to use DXT5 instead of RGBA8888. This reduces the memory footprint of the app at the expense of a bit of correctness. Because it's not quite correct, it's hidden behind a driconf option.

91cbe8d855c gallium: Add a transcode_astc driconf option
.../auxiliary/pipe-loader/driinfo_gallium.h | 1 +
src/gallium/frontends/dri/dri_screen.c | 2 ++
src/gallium/include/frontend/api.h | 1 +
src/mesa/state_tracker/st_cb_texture.c | 8 +++++++-
src/mesa/state_tracker/st_context.c | 4 ++++
src/mesa/state_tracker/st_context.h | 1 +
src/mesa/state_tracker/st_format.c | 22 ++++++++++++++++++----
src/util/driconf.h | 3 +++
8 files changed, 37 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share