Lines Matching defs:batch

89                       struct crocus_batch *batch,
114 crocus_cache_flush_for_read(batch, isv->res->bo);
116 if (batch->screen->devinfo.ver == 7 &&
121 crocus_get_depth_stencil_resources(&batch->screen->devinfo, isv->base.texture, &zres, &sres);
123 crocus_cache_flush_for_read(batch, sres->shadow->bo);
130 struct crocus_batch *batch,
160 crocus_cache_flush_for_read(batch, res->bo);
165 crocus_update_align_res(struct crocus_batch *batch,
169 struct crocus_screen *screen = (struct crocus_screen *)batch->screen;
185 if (!screen->vtbl.blit_blt(batch, &info)) {
198 struct crocus_batch *batch,
210 resolve_sampler_views(ice, batch, shs, info, draw_aux_buffer_disabled,
212 resolve_image_views(ice, batch, shs, draw_aux_buffer_disabled,
219 struct crocus_batch *batch,
243 crocus_cache_flush_for_depth(batch, z_res->bo);
246 crocus_update_align_res(batch, (struct crocus_surface *)zs_surf, true);
251 crocus_cache_flush_for_depth(batch, s_res->bo);
279 crocus_update_align_res(batch, surf, true);
297 crocus_cache_flush_for_render(batch, res->bo, surf->view.format,
317 struct crocus_batch *batch)
343 crocus_depth_cache_add_bo(batch, z_res->bo);
346 crocus_update_align_res(batch, (struct crocus_surface *)zs_surf, false);
358 crocus_depth_cache_add_bo(batch, s_res->bo);
371 crocus_update_align_res(batch, surf, false);
375 crocus_render_cache_add_bo(batch, res->bo, surf->view.format,
393 crocus_cache_sets_clear(struct crocus_batch *batch)
395 hash_table_foreach(batch->cache.render, render_entry)
396 _mesa_hash_table_remove(batch->cache.render, render_entry);
398 set_foreach(batch->cache.depth, depth_entry)
399 _mesa_set_remove(batch->cache.depth, depth_entry);
415 crocus_flush_depth_and_render_caches(struct crocus_batch *batch)
417 const struct intel_device_info *devinfo = &batch->screen->devinfo;
419 crocus_emit_pipe_control_flush(batch,
425 crocus_emit_pipe_control_flush(batch,
430 crocus_emit_mi_flush(batch);
433 crocus_cache_sets_clear(batch);
437 crocus_cache_flush_for_read(struct crocus_batch *batch,
440 if (_mesa_hash_table_search_pre_hashed(batch->cache.render, bo->hash, bo) ||
441 _mesa_set_search_pre_hashed(batch->cache.depth, bo->hash, bo))
442 crocus_flush_depth_and_render_caches(batch);
452 crocus_cache_flush_for_render(struct crocus_batch *batch,
457 if (_mesa_set_search_pre_hashed(batch->cache.depth, bo->hash, bo))
458 crocus_flush_depth_and_render_caches(batch);
484 _mesa_hash_table_search_pre_hashed(batch->cache.render, bo->hash, bo);
486 crocus_flush_depth_and_render_caches(batch);
490 crocus_render_cache_add_bo(struct crocus_batch *batch,
497 _mesa_hash_table_search_pre_hashed(batch->cache.render, bo->hash, bo);
506 _mesa_hash_table_insert_pre_hashed(batch->cache.render, bo->hash, bo,
511 crocus_cache_flush_for_depth(struct crocus_batch *batch,
514 if (_mesa_hash_table_search_pre_hashed(batch->cache.render, bo->hash, bo))
515 crocus_flush_depth_and_render_caches(batch);
519 crocus_depth_cache_add_bo(struct crocus_batch *batch, struct crocus_bo *bo)
521 _mesa_set_add_pre_hashed(batch->cache.depth, bo->hash, bo);
526 struct crocus_batch *batch,
531 struct crocus_screen *screen = batch->screen;
535 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
538 crocus_batch_maybe_flush(batch, 1500);
552 crocus_emit_end_of_pipe_sync(batch, "color resolve: pre-flush",
556 blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
563 crocus_emit_end_of_pipe_sync(batch, "color resolve: post-flush",
569 struct crocus_batch *batch,
574 struct crocus_screen *screen = batch->screen;
582 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
586 blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
604 struct crocus_batch *batch,
610 struct crocus_screen *screen = batch->screen;
611 const struct intel_device_info *devinfo = &batch->screen->devinfo;
666 crocus_emit_pipe_control_flush(batch,
672 crocus_emit_pipe_control_flush(batch,
676 crocus_emit_pipe_control_flush(batch, "hiz op: pre-flushes (2/2)",
682 crocus_batch_maybe_flush(batch, 1500);
685 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
691 blorp_batch_init(&ice->blorp, &blorp_batch, batch, flags);
718 crocus_emit_pipe_control_flush(batch,
722 crocus_emit_pipe_control_flush(batch,
831 * do them on the render batch...
833 struct crocus_batch *batch = &ice->batches[CROCUS_BATCH_RENDER];
861 crocus_mcs_partial_resolve(ice, batch, res, layer, 1);
863 crocus_hiz_exec(ice, batch, res, level, layer, 1, aux_op, false);
868 crocus_resolve_color(ice, batch, res, level, layer, aux_op);