Commit 0743dd19 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Handle ./test-clear special case

parent 87293421
......@@ -604,8 +604,12 @@ allocate_atom()
static void
trans_submit_frame(struct panfrost_context *ctx)
{
/* Edge case if screen is cleared and nothing else */
bool has_draws = ctx->draw_count > 0;
/* A number of jobs are batched -- this must be linked and cleared */
trans_link_jobs(ctx);
ctx->draw_count = 0;
mali_external_resource framebuffer[] = {
......@@ -628,8 +632,8 @@ trans_submit_frame(struct panfrost_context *ctx)
};
struct mali_ioctl_job_submit submit = {
.addr = atoms,
.nr_atoms = 2,
.addr = has_draws ? atoms : (atoms + 1),
.nr_atoms = has_draws ? 2 : 1,
.stride = sizeof(struct mali_jd_atom_v2),
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment