[Mesa-dev] [PATCH] mesa: Do something sensible when on-line compression is requested but not possible

Kenneth Graunke kenneth at whitecape.org
Fri Aug 24 22:32:14 PDT 2012


On 08/24/2012 08:23 PM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> It is possible to force S3TC extensions to be enabled.  This is
> generally done to support applications that will only supply
> pre-compressed textures.  This accounts for the vast majority of
> applications.
> 
> However, there is still the possibility of an application asking for
> on-line compression.  In that case, generate a warning and substitute a
> generic compressed format.  The driver will either pick an uncompressed
> format or a compressed format that Mesa can handle on-line (e.g., FXT1).
> 
> This should only cause problems for applications that request on-line
> compression and read the compressed texture back.  This is likely an
> infinitesimal subset of an already infinitesimal subset.
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>

Yeah.  Tons of applications want decompression, but almost none require
online compression...and as you say, the number that would actually
notice us swapping out the format is really tiny.  Probably only
conformance tests.  This seems reasonable.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>



More information about the mesa-dev mailing list