freedreno/a6xx: pre-calculate expected vsc stream sizes
[mesa.git] / src / gallium / drivers / freedreno / freedreno_batch.h
index 9266790bb80cf4d4180d5c186e5fe2ca3b5b2479..479d78d5eca9ba7967397e8b4e3dad3b75d2a503 100644 (file)
@@ -129,9 +129,16 @@ struct fd_batch {
         */
        const struct fd_gmem_stateobj *gmem_state;
 
-       unsigned num_draws;   /* number of draws in current batch */
+       unsigned num_draws;      /* number of draws in current batch */
        unsigned num_vertices;   /* number of vertices in current batch */
 
+       /* Currently only used on a6xx, to calculate vsc prim/draw stream
+        * sizes:
+        */
+       unsigned num_bins_per_pipe;
+       unsigned prim_strm_bits;
+       unsigned draw_strm_bits;
+
        /* Track the maximal bounds of the scissor of all the draws within a
         * batch.  Used at the tile rendering step (fd_gmem_render_tiles(),
         * mem2gmem/gmem2mem) to avoid needlessly moving data in/out of gmem.