Re: [Mesa-dev] [PATCH 5/6] etnaviv: mask correct channel for RB swapped rendertargets

2017-06-05 Thread Lucas Stach
Am Sonntag, den 04.06.2017, 16:37 -0400 schrieb Ilia Mirkin: > On Sun, Jun 4, 2017 at 3:06 PM, Lucas Stach wrote: > > +   /* If the complete render target is written, set > > full_overwrite: > > +* - The color mask is > > +* - No blending is used > > +*/ > > +   

Re: [Mesa-dev] [PATCH 5/6] etnaviv: mask correct channel for RB swapped rendertargets

2017-06-04 Thread Ilia Mirkin
On Sun, Jun 4, 2017 at 3:06 PM, Lucas Stach wrote: > + /* If the complete render target is written, set full_overwrite: > +* - The color mask is > +* - No blending is used > +*/ > + bool full_overwrite = (rt0->colormask == 0xf) && !blend->enable; > +

[Mesa-dev] [PATCH 5/6] etnaviv: mask correct channel for RB swapped rendertargets

2017-06-04 Thread Lucas Stach
Now that we support RB swapped targets by using a shader variant, we must derive the color mask from both the blend state and the bound framebuffer. Fixes piglit: fbo-colormask-formats Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_blend.c | 48