gallium: Add a transcode_astc driconf option

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.

Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10476>
This commit is contained in:
Jason Ekstrand
2021-04-26 18:01:16 -05:00
parent 7ae0719117
commit 91cbe8d855
8 changed files with 37 additions and 5 deletions
+1
View File
@@ -242,6 +242,7 @@ struct st_config_options
bool force_integer_tex_nearest;
bool force_gl_names_reuse;
bool transcode_etc;
bool transcode_astc;
char *force_gl_vendor;
unsigned char config_options_sha1[20];
};