[Mesa-stable] [Mesa-dev] [PATCH 4/4] i965/fs: Don't issue FB writes for bound but unwritten color targets.

Jason Ekstrand jason at jlekstrand.net
Sat Mar 7 13:35:59 PST 2015


On Sat, Mar 7, 2015 at 9:58 AM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> On 27 February 2015 at 08:06, Kenneth Graunke <kenneth at whitecape.org>
> wrote:
> > We used to loop over all color attachments, and emit FB writes for each
> > one, even if the shader didn't write to a corresponding output variable.
> > Those color attachments would be filled with garbage (undefined values).
> >
> > Football Manager binds a framebuffer with 4 color attachments, but draws
> > to it using a shader that only writes to gl_FragData[0..2].  This meant
> > that color attachment 3 would be filled with garbage, resulting in
> > rendering artifacts.  Now we skip writing to it, fixing rendering.
> >
> > Writes to gl_FragColor initialize outputs[0..nr_color_regions-1] to
> > GRFs, while writes to gl_FragData[i] initialize outputs[i].
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86747
> > Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> > Cc: mesa-stable at lists.freedesktop.org
> Hi Ken,
>
> This commit does not seems to have not landed in master. Did it fall
> through the cracks ?
>

I think it did.  This series is definitely somethiing we would like to be
in 10.5
--Jason


>
> Cheers,
> Emil
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20150307/75cdc5dd/attachment.html>


More information about the mesa-stable mailing list