[Mesa-dev] [PATCH 00/15] program: Remove remnants of NV_fragment_program and other cruft
Ian Romanick
idr at freedesktop.org
Tue Mar 1 00:31:11 UTC 2016
On 02/29/2016 03:34 PM, Matt Turner wrote:
> We removed NV_vertex_program and NV_fragment_program{,_option} in 2012 yet we
> continue finding more pieces of them years later. Last year we discussed
> removing some remaining bits of NV_fragment_program_option that were used by
> a broken Viewperf11 test [1]. Hopefully it's been long enough and we can strip
> out the rest of the condition code support from Mesa IR.
>
> If not... then I guess I can try to rebase that out of the series. I hope it
> doesn't come to that. I'd really like to replace Mesa IR with NIR. idr
> suggested a alternate plan that's making more and more sense to me though: push
> Mesa IR down to just something i915 and r200 consume or get rid of it entirely.
>
> That would require 1) a NIR -> Mesa IR translator (for i915 and r200)
> 2) changing the program parser to generate NIR
> 3) ...?
We've discussed a couple times that it may be useful to have Mesa
support the various NV assembly extensions. There are a bunch of
applications that use Cg to generate assembly. If you don't support the
magic NV extensions, you don't get the nice eye candy... or you do, but
you get it with rubbish code.
I think the sensible way to get to that future is to remove the existing
support (as this series does), convert to NIR, then gradually add
support back. There's a LOT of stuff that would be done differently.
Not having any of that in the way will make a transition to NIR easier
to implement and easier to verify.
This series is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
I sent a comment on patch 13, and you'll probably end up with another
patch. :)
> And with Rob's work to bring NIR to Gallium (and probably some more), we can
> probably cut out Mesa IR -> TGSI as well.
>
> [1] https://lists.freedesktop.org/archives/mesa-dev/2015-February/077015.html
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list