• Home
  • Raw
  • Download

Lines Matching refs:grow

457                         struct crocus_growing_bo *grow,  in recreate_growing_buffer()  argument
462 grow->bo = crocus_bo_alloc(bufmgr, name, size); in recreate_growing_buffer()
463 grow->bo->kflags |= EXEC_OBJECT_CAPTURE; in recreate_growing_buffer()
464 grow->partial_bo = NULL; in recreate_growing_buffer()
465 grow->partial_bo_map = NULL; in recreate_growing_buffer()
466 grow->partial_bytes = 0; in recreate_growing_buffer()
468 grow->map = realloc(grow->map, grow->bo->size); in recreate_growing_buffer()
470 grow->map = crocus_bo_map(NULL, grow->bo, MAP_READ | MAP_WRITE); in recreate_growing_buffer()
471 grow->map_next = grow->map; in recreate_growing_buffer()
608 finish_growing_bos(struct crocus_growing_bo *grow) in finish_growing_bos() argument
610 struct crocus_bo *old_bo = grow->partial_bo; in finish_growing_bos()
614 memcpy(grow->map, grow->partial_bo_map, grow->partial_bytes); in finish_growing_bos()
616 grow->partial_bo = NULL; in finish_growing_bos()
617 grow->partial_bo_map = NULL; in finish_growing_bos()
618 grow->partial_bytes = 0; in finish_growing_bos()
630 struct crocus_growing_bo *grow = grow_state ? &batch->state : &batch->command; in crocus_grow_buffer() local
631 struct crocus_bo *bo = grow->bo; in crocus_grow_buffer()
633 if (grow->partial_bo) { in crocus_grow_buffer()
638 finish_growing_bos(grow); in crocus_grow_buffer()
644 grow->partial_bo_map = grow->map; in crocus_grow_buffer()
654 grow->map = malloc(new_bo->size); in crocus_grow_buffer()
656 grow->map = crocus_bo_map(NULL, new_bo, MAP_READ | MAP_WRITE); in crocus_grow_buffer()
728 grow->partial_bo = new_bo; /* the one reference of the OLD bo */ in crocus_grow_buffer()
729 grow->partial_bytes = used; in crocus_grow_buffer()