radeonsi: add driconf option radeonsi_enable_nir
authorMarek Olšák <marek.olsak@amd.com>
Tue, 19 Feb 2019 22:20:01 +0000 (17:20 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Feb 2019 22:59:17 +0000 (17:59 -0500)
Cc: 18.3 19.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/driinfo_radeonsi.h
src/gallium/drivers/radeonsi/si_pipe.c
src/util/xmlpool/t_options.h

index cbf3bb01fb325d87884fcf09a168e89297bee52b..edf8edba035cdbc32b1c3bb7ae10f897398e6698 100644 (file)
@@ -12,4 +12,5 @@ DRI_CONF_SECTION_END
 
 DRI_CONF_SECTION_DEBUG
    DRI_CONF_RADEONSI_CLEAR_DB_CACHE_BEFORE_CLEAR("false")
+   DRI_CONF_RADEONSI_ENABLE_NIR("false")
 DRI_CONF_SECTION_END
index 20767c806d20d840572dd564c42f8cf5523d8da2..c02c81cad3a1500e42dfe82be3c1f6d9531039b2 100644 (file)
@@ -872,7 +872,8 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
                sscreen->debug_flags |= DBG(FS_CORRECT_DERIVS_AFTER_KILL);
        if (driQueryOptionb(config->options, "radeonsi_enable_sisched"))
                sscreen->debug_flags |= DBG(SI_SCHED);
-
+       if (driQueryOptionb(config->options, "radeonsi_enable_nir"))
+               sscreen->debug_flags |= DBG(NIR);
 
        if (sscreen->debug_flags & DBG(INFO))
                ac_print_gpu_info(&sscreen->info);
index f48758f570635cc3d96c17cce002447de8f0acbf..a7cba3417cc7d0259ec1f2205547a14c63862b86 100644 (file)
@@ -352,3 +352,8 @@ DRI_CONF_OPT_END
 DRI_CONF_OPT_BEGIN_B(radeonsi_zerovram, def) \
         DRI_CONF_DESC(en,"Zero all vram allocations") \
 DRI_CONF_OPT_END
+
+#define DRI_CONF_RADEONSI_ENABLE_NIR(def) \
+DRI_CONF_OPT_BEGIN_B(radeonsi_enable_nir, def) \
+        DRI_CONF_DESC(en,gettext("Enable NIR")) \
+DRI_CONF_OPT_END