nir/vtn: Convert constant samplers to variables with data
[mesa.git] / src / compiler / nir / nir_schedule.h
index 98c92a6b46c730e77e12fad9d16158c4178a0ff9..d9cf417e9068756f986009398bdfc6b214fc8a17 100644 (file)
@@ -58,6 +58,12 @@ typedef struct nir_schedule_options {
     * will try to reduce register usage.
     */
    int threshold;
+   /* If set, instead of trying to optimise parallelism, the scheduler will try
+    * to always minimise register pressure. This can be used as a fallback when
+    * register allocation fails so that it can at least try to generate a
+    * working shader even if it’s inefficient.
+    */
+   bool fallback;
    /* Callback used to add custom dependencies on intrinsics. If it returns
     * true then a dependency should be added and dep is filled in to describe
     * it.