[Mesa-dev] [RFC] freedreno: add tgsi lowering pass

Marek Olšák maraeo at gmail.com
Thu Jan 16 01:51:32 PST 2014


On Thu, Jan 16, 2014 at 6:41 AM, Matt Turner <mattst88 at gmail.com> wrote:
> On Wed, Jan 15, 2014 at 5:40 AM, Rob Clark <robdclark at gmail.com> wrote:
>> From: Rob Clark <robclark at freedesktop.org>
>>
>> So, as I found myself needing to lower a few more TGSI instructions,
>> and noticing yet again that I would have to do the same lowering as
>> various other gallium drivers already do,  I decided that maybe it
>> makes sense to do this instead generically in a way that could maybe
>> help other drivers too.
>>
>> This currently lowers the following instructions:
>>
>>    DST, XPD, SCS, LRP, FRC, POW, LIT, EXP, LOG
>
> I think we already have GLSL IR level lowering passes for lrp, pow,
> exp, and log. Can't you use those?

I guess he can, but the ARB programs as well as the fixed-function
vertex program don't use the GLSL IR.

Marek


More information about the mesa-dev mailing list