[Mesa-dev] [PATCH v2 3/9] i915: Use L8A8 instead of I8 to simulate A8 on gen2

Erik Faye-Lund kusmabite at gmail.com
Fri Aug 15 01:52:50 PDT 2014


On Thu, Aug 7, 2014 at 10:31 AM,  <ville.syrjala at linux.intel.com> wrote:
> diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
> index c61a748..f414ea3 100644
> --- a/src/mesa/main/texformat.c
> +++ b/src/mesa/main/texformat.c
>     case GL_ALPHA12:
>     case GL_ALPHA16:
>        RETURN_IF_SUPPORTED(MESA_FORMAT_A_UNORM16);
>        RETURN_IF_SUPPORTED(MESA_FORMAT_A_UNORM8);
> +      RETURN_IF_SUPPORTED(MESA_FORMAT_L8A8_UNORM);
>        break;

I know this isn't exactly what your patch looked to support, but
shouldn't MESA_FORMAT_L16A16_UNORM be tried as a lossless alternative
also?


More information about the mesa-dev mailing list