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

Ville Syrjälä ville.syrjala at linux.intel.com
Fri Aug 15 02:57:02 PDT 2014


On Fri, Aug 15, 2014 at 10:52:50AM +0200, Erik Faye-Lund wrote:
> 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?

I suppose, but I suspect you'll have a hard time finding hardware that
supports L16A16 but not A16.

-- 
Ville Syrjälä
Intel OTC


More information about the mesa-dev mailing list