aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-10-30 11:33:44 +0100
committerIago Toral Quiroga <[email protected]>2019-12-16 08:42:37 +0100
commita0c94c70ee9aa74c7ff05acffc43c8e92b0c0e1e (patch)
treedf77d275d20d3fa159643c2b28471d23a1ca8fcc
parent56ba6f42e22bd55d8f95c0cfc6e95357e49aa4d1 (diff)
v3d: do not limit new CL space allocations with branch to 4096 bytes
For layered rendering we need to emit per layer rendering commands lists so we we can end up requiring a fairly large buffer for this if the number of layers is large enough. Reviewed-by: Alejandro PiƱeiro <[email protected]>
-rw-r--r--src/gallium/drivers/v3d/v3d_cl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_cl.c b/src/gallium/drivers/v3d/v3d_cl.c
index 575bf5c18e4..8d3d56eed74 100644
--- a/src/gallium/drivers/v3d/v3d_cl.c
+++ b/src/gallium/drivers/v3d/v3d_cl.c
@@ -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. */