freedreno: enabling binning and opt by default
[mesa.git] / src / gallium / drivers / freedreno / a3xx / fd3_context.h
index 3829ab52675970a01d9fa706e768c20e6da00316..26c8cc762b905a95a070f6743dd3bda115959a65 100644 (file)
 struct fd3_context {
        struct fd_context base;
 
+       /* Keep track of writes to RB_RENDER_CONTROL which need to be patched
+        * once we know whether or not to use GMEM, and GMEM tile pitch.
+        */
+       struct util_dynarray rbrc_patches;
+
        struct fd_bo *vs_pvt_mem, *fs_pvt_mem;
 
-       /* not sure how big this actually needs to be.. the blob driver
-        * combines it w/ the solid_vertexbuf, we could probably do the
-        * same to save an extra bo allocation..
+       /* This only needs to be 4 * num_of_pipes bytes (ie. 32 bytes).  We
+        * could combine it with another allocation.
         */
        struct fd_bo *vsc_size_mem;
 
-       struct fd_bo *vsc_pipe_mem;
-
        /* vertex buf used for clear/gmem->mem vertices, and mem->gmem
         * vertices:
         */