clover/nir: hookup printf (v3)
authorDave Airlie <airlied@redhat.com>
Wed, 28 Oct 2020 01:46:49 +0000 (11:46 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Dec 2020 23:16:52 +0000 (09:16 +1000)
commit76788353b2bac86f65718984e16136e033979bfa
tree165dde1050ceb34d53af938edb1ec24f13724475
parent3f779013423b5472e1da939dab1304e9998cfc47
clover/nir: hookup printf (v3)

This connects printf up for NIR drivers, it lowers using the NIR
pass where it places the idx to the strings into the output buffer.

It also sets the global buffer header to the nir paths.

v2: remove dead function temps after lowering

v3: move to single string

Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8254>
src/gallium/frontends/clover/nir/invocation.cpp