{
assert(ring->funcs->grow); /* unsupported on kgsl */
- /* there is an upper bound on IB size, which appears to be 0x0fffff */
- ring->size = MIN2(ring->size << 1, 0x0fffff);
-
ring->funcs->grow(ring, ring->size);
}
* (but still builds a bos table)
*/
-#define INIT_SIZE 0x1000
-
-#define SUBALLOC_SIZE (32 * 1024)
-
/* In the pipe->flush() path, we don't have a util_queue_fence we can wait on,
* instead use a condition-variable. Note that pipe->flush() is not expected
* to be a common/hot path.
fd_submit_suballoc_ring_bo(submit, fd_ring, size);
} else {
if (flags & FD_RINGBUFFER_GROWABLE)
- size = INIT_SIZE;
+ size = SUBALLOC_SIZE;
fd_ring->offset = 0;
fd_ring->ring_bo = fd_bo_new_ring(submit->pipe->dev, size);