st/nine: Use tgsi_to_nir when preferred IR is NIR.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 31 May 2019 16:43:20 +0000 (18:43 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Wed, 5 Jun 2019 21:32:13 +0000 (23:32 +0200)
commitc94b70a1781b8fb65be24b7e3a72462426cd86c4
tree766e8daed5df3c4413555ac1c74084146652cc6b
parentc1621274401b4bd2de7db1f7a813f6bfce8307f8
st/nine: Use tgsi_to_nir when preferred IR is NIR.

This patch allows nine to read the preferred IR from pipe caps and use
NIR when that is preferred by the driver, by calling tgsi_to_nir. Also
adds some debug options that allow overriding it.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/meson.build
src/gallium/state_trackers/nine/nine_ff.c
src/gallium/state_trackers/nine/nine_shader.c
src/gallium/state_trackers/nine/nine_shader.h