can't be turned on for release builds for now.

Signed-off-by: Karol Herbst <[email protected]>
---
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c 
b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 90fc01ecd0..83884cb099 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -353,9 +353,15 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen,
       return 0;
    }
 
+#ifdef DEBUG
+   long prefer_ir = debug_get_num_option("NV50_PROG_USE_NIR", 0) ? 
PIPE_SHADER_IR_NIR : PIPE_SHADER_IR_TGSI;
+#else
+   long prefer_ir = PIPE_SHADER_IR_TGSI;
+#endif
+
    switch (param) {
    case PIPE_SHADER_CAP_PREFERRED_IR:
-      return PIPE_SHADER_IR_TGSI;
+      return prefer_ir;
    case PIPE_SHADER_CAP_SUPPORTED_IRS:
       return 1 << PIPE_SHADER_IR_TGSI |
              1 << PIPE_SHADER_IR_NIR;
-- 
2.14.3

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to