[Mesa-dev] [PATCH 0/6] Updated nir texture lowering

Rob Clark robdclark at gmail.com
Thu Sep 17 12:24:07 PDT 2015


On Thu, Sep 17, 2015 at 3:15 PM, Eric Anholt <eric at anholt.net> wrote:
> Rob Clark <robdclark at gmail.com> writes:
>
>> From: Rob Clark <robclark at freedesktop.org>
>>
>> Update of the patchset sent yesterday:
>> 1) rename to nir_lower_tex since it is no longer just lowering
>>    projector
>> 2) split configuration options out into nir_lower_tex_options
>> 3) add RECT lowering (also needed to get coord clamp working
>>    properly for RECT textures
>
> Network at the conference is dire.  I've pushed a bunch of
> cleanups/fixes to wip-texture-lowing in my tree, take a look and see if
> you want to take any of them.
>
> I haven't done much conversion for vc4, and I'm not sure I can use it
> because I don't want to do my Newton-Raphson steps for rcp on the
> projector divide.  The answer might be for me to do my precision fixes
> in NIR before doing this lowering.  Still thinking about it.

oh, ugg..  well, maybe time for nir support for driver specific opc's
and/or intrinsics?  Presumably if you could lower txs to
1/uniform_tex_size.xy then generic nir passes could catch the double
invert and make it go away?  (Plus then you get textureSize() support
for free, which I'm sure was high up on your todo list :-P)

anyways, I'll have a look at your branch, thx.  Fwiw, I'll be sending
first pass at two-sided-color lowering pass in a few minutes..

BR,
-R


More information about the mesa-dev mailing list