pan/midgard: Break mir_spill_register into its function
[mesa.git] / src / panfrost / midgard / midgard_compile.h
index 3b16cbd2bb518cc6de5e1f3b617d85ac7c01014e..389dd1e305f9c4905827d64639b488c58c3e3a3c 100644 (file)
@@ -41,8 +41,11 @@ struct midgard_screen {
 
         struct ra_regs *regs[9];
 
-        /* Work register classes corresponds to the above register sets */
-        unsigned reg_classes[9][4];
+        /* Work register classes corresponds to the above register sets. 20 per
+         * set for 4 classes per work/ldst/ldst27/texr/texw. TODO: Unify with
+         * compiler.h */
+
+        unsigned reg_classes[9][4 * 5];
 };
 
 /* Define the general compiler entry point */
@@ -77,9 +80,6 @@ typedef struct {
         int uniform_count;
         int uniform_cutoff;
 
-        int attribute_count;
-        int varying_count;
-
         /* Prepended before uniforms, mapping to SYSVAL_ names for the
          * sysval */
 
@@ -88,6 +88,9 @@ typedef struct {
 
         unsigned varyings[32];
 
+        /* Boolean properties of the program */
+        bool writes_point_size;
+
         int first_tag;
 
         struct util_dynarray compiled;