v3d: compute appropriate VPM memory configuration for geometry shader workloads
[mesa.git] / src / broadcom / compiler / v3d_compiler.h
index a5b4748aaf0c6751ad51d4aee3d75474c0dcf147..4249c181bf113f57974dfcd934004e5ece46c718 100644 (file)
@@ -716,6 +716,13 @@ struct v3d_gs_prog_data {
         /* Total number of components written, for the shader state record. */
         uint32_t vpm_output_size;
 
         /* Total number of components written, for the shader state record. */
         uint32_t vpm_output_size;
 
+        /* Maximum SIMD dispatch width to not exceed VPM output size limits
+         * in the geometry shader. Notice that the final dispatch width has to
+         * be decided at draw time and could be lower based on the VPM pressure
+         * added by other shader stages.
+         */
+        uint8_t simd_width;
+
         /* Output primitive type */
         uint8_t out_prim_type;
 
         /* Output primitive type */
         uint8_t out_prim_type;