panfrost: Allocate a state uploader
[mesa.git] / src / gallium / drivers / panfrost / pan_context.h
index ef37cb57a32d5e1c8e6b699608c6d99a9a483830..d490f4aca564755937c3ac1b1173fe78b4aa612c 100644 (file)
@@ -96,6 +96,11 @@ struct panfrost_context {
         /* Gallium context */
         struct pipe_context base;
 
         /* Gallium context */
         struct pipe_context base;
 
+        /* Upload manager for small resident GPU-internal data structures, like
+         * sampler descriptors. We use an upload manager since the minimum BO
+         * size from the kernel is 4kb */
+        struct u_upload_mgr *state_uploader;
+
         /* Bound job batch and map of panfrost_batch_key to job batches */
         struct panfrost_batch *batch;
         struct hash_table *batches;
         /* Bound job batch and map of panfrost_batch_key to job batches */
         struct panfrost_batch *batch;
         struct hash_table *batches;