Lines Matching refs:space
33 struct swr_scratch_space *space, in swr_copy_to_scratch_space() argument
38 assert(space); in swr_copy_to_scratch_space()
45 if (max_size_in_flight > space->current_size) { in swr_copy_to_scratch_space()
46 space->current_size = max_size_in_flight; in swr_copy_to_scratch_space()
48 if (space->base) { in swr_copy_to_scratch_space()
51 swr_fence_work_free(screen->flush_fence, space->base, true); in swr_copy_to_scratch_space()
52 space->base = NULL; in swr_copy_to_scratch_space()
55 if (!space->base) { in swr_copy_to_scratch_space()
56 space->base = (uint8_t *)AlignedMalloc(space->current_size, in swr_copy_to_scratch_space()
58 space->head = (void *)space->base; in swr_copy_to_scratch_space()
63 if (((uint8_t *)space->head + size) in swr_copy_to_scratch_space()
64 >= ((uint8_t *)space->base + space->current_size)) { in swr_copy_to_scratch_space()
65 space->head = space->base; in swr_copy_to_scratch_space()
68 ptr = space->head; in swr_copy_to_scratch_space()
69 space->head = (uint8_t *)space->head + size; in swr_copy_to_scratch_space()