X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fpanfrost%2Fpan_compute.c;h=d0b2e132295c631e69c7f927a1fb0ee6d9ae5101;hb=5b0a1a4e49b49cb61d9369d3aaacfe1d124571c8;hp=43fef8d8cfa626129226f1f9c5669ac3bab8622f;hpb=b40ba2db6c81021f83465a4ac32922a064cc91b2;p=mesa.git diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c index 43fef8d8cfa..d0b2e132295 100644 --- a/src/gallium/drivers/panfrost/pan_compute.c +++ b/src/gallium/drivers/panfrost/pan_compute.c @@ -53,7 +53,7 @@ panfrost_create_compute_state( panfrost_shader_compile(ctx, v->tripipe, cso->ir_type, cso->prog, - MESA_SHADER_COMPUTE, v); + MESA_SHADER_COMPUTE, v, NULL); @@ -87,6 +87,8 @@ panfrost_launch_grid(struct pipe_context *pipe, { struct panfrost_context *ctx = pan_context(pipe); + ctx->compute_grid = info; + struct mali_job_descriptor_header job = { .job_type = JOB_TYPE_COMPUTE, .job_descriptor_size = 1, @@ -130,6 +132,8 @@ panfrost_launch_grid(struct pipe_context *pipe, /* Queue the job */ panfrost_scoreboard_queue_compute_job(batch, transfer); + + panfrost_flush(pipe, NULL, PIPE_FLUSH_END_OF_FRAME); } void