[Mesa-dev] Suboptimal code generation

Henri Verbeet hverbeet at gmail.com
Fri Nov 14 12:23:56 PST 2014


On 14 November 2014 20:41, Roland Scheidegger <sroland at vmware.com> wrote:
> That looks quite ok to me. Slightly suboptimal maybe but quite
> reasonable - you can't really expect "optimal" code always. (With the
> proposal to nuke cnd from tgsi though you'd just generate the same in
> any case probably.)
> I suspect the bunch of int/float conversions got away when switching
> comparison operation stuff in glsl to tgsi translation to using ints
> ones on hardware which supports integers (a year ago or so). I know this
> made some tgsi look a bit nicer but I don't know the effects this had on
> backends (which also probably learned some new tricks since then).
>
Yeah, pretty much.

I haven't seen anything particularly bad recently, but that could just
be because I haven't been actively looking.


More information about the mesa-dev mailing list