[Mesa-dev] [PATCH v2 2/3] i965/fs: Change SEL and MOV types as needed to propagate source modifiers

Jason Ekstrand jason at jlekstrand.net
Fri Apr 10 22:58:03 PDT 2015


On Apr 10, 2015 10:34 PM, "Matt Turner" <mattst88 at gmail.com> wrote:
>
> On Fri, Apr 10, 2015 at 10:24 PM, Matt Turner <mattst88 at gmail.com> wrote:
> > On Fri, Apr 10, 2015 at 2:16 PM, Jason Ekstrand <jason at jlekstrand.net>
wrote:
> >> Ping
> >
> > 1-2 are
> >
> > Reviewed-by: Matt Turner <mattst88 at gmail.com>
> >
> > Thanks!
>
> Though I should mention that I do see some shaders that still do SEL
> on UD types. Maybe we're not losing anything by doing that, but it is
> still pretty annoying to figure out what the constant is in something
> like
>
> (-f0) sel(8)    g11<1>UD        g10<8,8,1>UD    0x33d6bf95UD    { align1
1Q };

Agreed. I did have a type-guessing patch that I kind of dropped on the
floor.  However no solution will be perfect.  We could always do what we do
in NIR and print both the integer and the float for integer constants
(assuming the value is valid floating-point).
--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150410/4ff2ed72/attachment.html>


More information about the mesa-dev mailing list