freedreno/ir3: refactor out helper to compile shader from asm
authorRob Clark <robdclark@chromium.org>
Wed, 17 Jun 2020 15:13:12 +0000 (08:13 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 13:16:57 +0000 (13:16 +0000)
commit1e8808a4a0f7f28dfc885bbe6c50e7a65ad15bbf
tree3184a5ee13ce30eb8973614d8c817b7b8486cab7
parentb6db703e0f007fbcf4389ec607ae4c3e8fc9ee0d
freedreno/ir3: refactor out helper to compile shader from asm

Deduplicate a bit of hand-building of ir3_shader/_variant from
computerator and delay test.  This also removes the need for
external things to depend on generated ir3_parser header.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5508>
src/freedreno/Makefile.sources
src/freedreno/computerator/ir3_asm.c
src/freedreno/computerator/meson.build
src/freedreno/ir3/ir3_assembler.c [new file with mode: 0644]
src/freedreno/ir3/ir3_assembler.h [new file with mode: 0644]
src/freedreno/ir3/ir3_parser.y
src/freedreno/ir3/meson.build
src/freedreno/ir3/tests/delay.c