Browse Source

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 <apinheiro@igalia.com>
master
Iago Toral Quiroga 5 years ago
parent
commit
a0c94c70ee
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/v3d/v3d_cl.c

+ 1
- 1
src/gallium/drivers/v3d/v3d_cl.c View 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. */

Loading…
Cancel
Save