[Mesa-dev] [PATCH] tgsi: lowering support for alpha test

Eric Anholt eric at anholt.net
Sun Dec 21 08:42:31 PST 2014


Rob Clark <robdclark at gmail.com> writes:

> Eric,
>
> we've managed to find the alpha-ref bitfield on a4xx, so suddenly I
> don't actually need this anymore..
>
> I've pushed a slightly updated version where I'd fixed a few more
> things (and was passing the fbo-alphatest-formats tests for me) to my
> github tree, in case you feel motivated to take it over:
>
>   https://github.com/freedreno/mesa/commit/70df2f9a2bbddf8e1608bab2a041a81b9b7c34e8
>
> what was left was to drop the const semantic and convert it over to an
> interface where driver passes in which const slot it wants to use.  To
> do that, we might want to re-work the tgsi_lowering interface slightly
> so the driver does the first tgsi_scan_shader() (so it knows # of
> consts) and tgsi_lowering only does the 2nd tgsi_scan_shader() in
> cases where the shader is transformed.  We seems like a sane change to
> me.

With NIR getting ready to land, I'm planning on doing lowering in that
instead.  It already has a way to describe state updates required for
uniforms, which I would just translate to my driver's per-uniform state
update enum.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141221/0f5b26bd/attachment.sig>


More information about the mesa-dev mailing list