[Libre-soc-bugs] [Bug 251] Initial 3D MESA non-accelerated software-only driver is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Aug 8 14:07:36 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=251

--- Comment #23 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to vivekvpandya from comment #21)
> Do we have a NIR reader/parser code already in open source?

as part of MESA, yes.  bit of crossover i was just investigating.

https://github.com/mesa3d/mesa/blob/master/src/panfrost/midgard/midgard_compile.c

even the new MALI midgard driver uses NIR.

> Also where can I find some shader dumps for NIR?

honestly don't know.  a quick treewalk i did find this:

https://github.com/mesa3d/mesa/blob/master/src/compiler/spirv/spirv2nir.c

whether that's a binary dump or not i don't know.

if there really is no nir assembly dump tool or documentation that would be
rather strange and be "self-foot-shooting".

https://people.freedesktop.org/~cwabbott0/nir-docs/intro.html

ah, here we go. there is a way:

NIR includes a function called nir_print_shader() for printing the contents of
a shader to a given FILE *, which can be useful for debugging. In addition,
nir_print_instr() is exposed, which can be useful for examining instructions in
the debugger.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list