v3d: do not limit new CL space allocations with branch to 4096 bytes
[mesa.git] / src / gallium / drivers / v3d / v3d_cl.c
index 575bf5c18e4c352697698020badb9e938d9ea2f0..8d3d56eed741dc4d41ae0a3442531051d00ee1b1 100644 (file)
@@ -63,7 +63,7 @@ v3d_cl_ensure_space_with_branch(struct v3d_cl *cl, uint32_t space)
         if (cl_offset(cl) + space + cl_packet_length(BRANCH) <= cl->size)
                 return;
 
-        struct v3d_bo *new_bo = v3d_bo_alloc(cl->job->v3d->screen, 4096, "CL");
+        struct v3d_bo *new_bo = v3d_bo_alloc(cl->job->v3d->screen, space, "CL");
         assert(space <= new_bo->size);
 
         /* Chain to the new BO from the old one. */