mesa/main: make ffvertex output nir
There's little point in going from fixed-function to ARB progs just to convert it to NIR in the end. So let's emit NIR code directly here instead. This all made sense back when we had DRI drivers that didn't use NIR at all in the tree, but these days we unconditionally call prog_to_nir. Since we're no longer generating something that resembles ARM asm shaders, we also no longer pass is_arb_asm as true to NewProgram. But we still require legacy math rules, so we set use_legacy_math_rules in the shader_info instead. This should do the same thing, but communicates exactly what we actually need rather than having a half- truth about the source of the shader. Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22520>
This commit is contained in:

committed by
Marge Bot

parent
7610747e94
commit
c5b3d488f9