nvir/nir: move nir options to codegen
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:52:04 +0000 (09:52 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:41 +0000 (22:52 +0000)
commitfa0a241b33552eca907e3c34f010ff67ffd247cd
tree0bb161731f03b4e51f4feb1325d08fc3a5ad27ea
parent789fa7e378c003871e660076569713324abd4b4a
nvir/nir: move nir options to codegen

These seem to make more sense living with the compiler.

v2:
- use a shared function to generate the per-chipset structs
- remove nir.h include from header, not needed

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>
src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c