Module: Mesa
Branch: main
Commit: c5b3d488f9bed0616f42193073fa0014cb68284d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c5b3d488f9bed0616f42193073fa0014cb68284d

Author: Erik Faye-Lund <[email protected]>
Date:   Wed Feb 15 14:47:53 2023 +0100

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 <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22520>

---

 src/mesa/main/ffvertex_prog.c | 1510 +++++++++++++++++------------------------
 1 file changed, 612 insertions(+), 898 deletions(-)

Diff:   
http://cgit.freedesktop.org/mesa/mesa/diff/?id=c5b3d488f9bed0616f42193073fa0014cb68284d

Reply via email to