Lines Matching defs:job
125 struct lima_job *job = lima_job_get(ctx);
128 /* add to job when the buffer is dirty and resolve is clear (not added before) */
130 !(job->resolve & PIPE_CLEAR_COLOR0)) {
133 _mesa_hash_table_insert(ctx->write_jobs, &res->base, job);
134 lima_job_add_bo(job, LIMA_PIPE_PP, res->bo, LIMA_SUBMIT_BO_WRITE);
137 /* add to job when the buffer is dirty and resolve is clear (not added before) */
139 !(job->resolve & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) {
142 _mesa_hash_table_insert(ctx->write_jobs, &res->base, job);
143 lima_job_add_bo(job, LIMA_PIPE_PP, res->bo, LIMA_SUBMIT_BO_WRITE);
146 job->resolve |= buffers;
154 struct lima_job *job = lima_job_get(ctx);
156 /* flush if this job already contains any draw, otherwise multi clear can be
157 * combined into a single job */
158 if (lima_job_has_draw_pending(job)) {
159 lima_do_job(job);
160 job = lima_job_get(ctx);
171 struct lima_job_clear *clear = &job->clear;
204 lima_damage_rect_union(&job->damage_rect,
294 struct lima_job *job = lima_job_get(ctx);
296 VS_CMD_BEGIN(&job->vs_cmd_array, 24);
342 struct lima_job *job = lima_job_get(ctx);
343 PLBU_CMD_BEGIN(&job->plbu_cmd_array, 32);
387 lima_damage_rect_union(&job->damage_rect, cscissor->minx, cscissor->maxx,
802 struct lima_job *job = lima_job_get(ctx);
805 job->dump, render, sizeof(*render),
810 job->dump, render, sizeof(*render),
818 struct lima_job *job = lima_job_get(ctx);
836 lima_job_add_bo(job, LIMA_PIPE_GP, res->bo, LIMA_SUBMIT_BO_READ);
847 job->dump, attribute, n * 4, false, "update attribute info at va %x\n",
877 struct lima_job *job = lima_job_get(ctx);
893 job->dump, vs_const_buff, size, true,
919 struct lima_job *job = lima_job_get(ctx);
922 job->dump, fp16_const_buff, const_buff_size * 2,
926 job->dump, array, 4, false, "add pp uniform info at va %x\n",
934 struct lima_job *job = lima_job_get(ctx);
986 lima_job_add_bo(job, LIMA_PIPE_GP, ctx->gp_output, LIMA_SUBMIT_BO_WRITE);
987 lima_job_add_bo(job, LIMA_PIPE_PP, ctx->gp_output, LIMA_SUBMIT_BO_READ);
1010 job->dump, varying, n * 4, false, "update varying info at va %x\n",
1062 lima_bo_unreference(ctx->gp_output); /* held by job */
1075 struct lima_job *job = lima_job_get(ctx);
1105 lima_job_add_bo(job, LIMA_PIPE_GP, ctx->index_res->bo, LIMA_SUBMIT_BO_READ);
1106 lima_job_add_bo(job, LIMA_PIPE_PP, ctx->index_res->bo, LIMA_SUBMIT_BO_READ);
1178 struct lima_job *job = lima_job_get(ctx);
1179 job->pp_max_stack_size = MAX2(job->pp_max_stack_size, ctx->fs->state.stack_size);
1182 job->dump, ctx->vs->bo->map, ctx->vs->state.shader_size, false,
1184 lima_dump_shader(job->dump, ctx->vs->bo->map, ctx->vs->state.shader_size, false);
1187 job->dump, ctx->fs->bo->map, ctx->fs->state.shader_size, false,
1189 lima_dump_shader(job->dump, ctx->fs->bo->map, ctx->fs->state.shader_size, true);
1191 lima_job_add_bo(job, LIMA_PIPE_GP, ctx->vs->bo, LIMA_SUBMIT_BO_READ);
1192 lima_job_add_bo(job, LIMA_PIPE_PP, ctx->fs->bo, LIMA_SUBMIT_BO_READ);
1199 job->draws++;
1200 /* Flush job if we hit the limit of draws per job otherwise we may
1202 if (job->draws > MAX_DRAWS_PER_JOB) {
1203 unsigned resolve = job->resolve;
1204 lima_do_job(job);
1205 /* Subsequent job will need to resolve the same buffers */