[Mesa-dev] [PATCH v2] i965: Handle lum, intensity and missing components in the fast clear

Ilia Mirkin imirkin at alum.mit.edu
Fri Nov 13 10:16:24 PST 2015


On Fri, Nov 13, 2015 at 1:12 PM, Ben Widawsky <ben at bwidawsk.net> wrote:
> On Thu, Nov 12, 2015 at 04:54:08PM +0100, Neil Roberts wrote:
>> +   default:
>> +      for (int i = 0; i < 3; i++) {
>> +         if (!_mesa_format_has_color_component(format, i))
>> +            override_color.ui[i] = 0;
>> +      }
>
> Is there an easy way to verify that all formats want 0 for GB channels? It looks

AFAIK that's true for GL, not DX.

> right to me, but with my knowledge of GL, that doesn't mean much (I am looking
> here: https://www.opengl.org/sdk/docs/man/html/glTexImage2D.xhtml)
>
> I also think that component 0 must always have a color, right? (I'm not
> requesting a change as such, just making sure my understanding of what you're
> trying to do is correct).

GL_ALPHA gets a 0 into rgb :)


More information about the mesa-dev mailing list