Lines Matching refs:damage
281 if (res->damage.region) in lima_resource_destroy()
282 FREE(res->damage.region); in lima_resource_destroy()
497 struct lima_damage_region *damage = &res->damage; in lima_resource_set_damage_region() local
500 if (damage->region) { in lima_resource_set_damage_region()
501 FREE(damage->region); in lima_resource_set_damage_region()
502 damage->region = NULL; in lima_resource_set_damage_region()
503 damage->num_region = 0; in lima_resource_set_damage_region()
523 struct pipe_scissor_state *bound = &damage->bound; in lima_resource_set_damage_region()
526 damage->region = CALLOC(nrects, sizeof(*damage->region)); in lima_resource_set_damage_region()
527 if (!damage->region) in lima_resource_set_damage_region()
531 get_scissor_from_box(damage->region + i, rects + i, in lima_resource_set_damage_region()
535 damage->aligned = true; in lima_resource_set_damage_region()
539 damage->aligned = false; in lima_resource_set_damage_region()
544 damage->num_region = nrects; in lima_resource_set_damage_region()