Lines Matching full:region

19  * Should translate the region to relative coords to the pixmap,
35 RegionPtr region, in __glamor_compute_clipped_regions() argument
53 extent = RegionExtents(region); in __glamor_compute_clipped_regions()
62 DEBUGRegionPrint(region); in __glamor_compute_clipped_regions()
126 RegionIntersect(current_region, &temp_region, region); in __glamor_compute_clipped_regions()
127 DEBUGF("i %d j %d region: \n", i, j); in __glamor_compute_clipped_regions()
130 clipped_regions[k].region = current_region; in __glamor_compute_clipped_regions()
146 * first is to clip the region regard to current pixmap's
147 * block array. Then for each clipped region, do a inner
150 * the final region also will not cross the pixmap's block
159 RegionPtr region, in glamor_compute_clipped_regions_ext() argument
181 clipped_regions[0].region = RegionCreate(NULL, 1); in glamor_compute_clipped_regions_ext()
183 RegionCopy(clipped_regions[0].region, region); in glamor_compute_clipped_regions_ext()
201 region, n_region, in glamor_compute_clipped_regions_ext()
231 region, in glamor_compute_clipped_regions_ext()
235 result_regions[k].region = inner_regions[j].region; in glamor_compute_clipped_regions_ext()
248 * For the repeat pad mode, we can simply convert the region and
249 * let the out-of-box region can cover the needed edge of the source/mask
253 _glamor_convert_pad_region(RegionPtr region, int w, int h) in _glamor_convert_pad_region() argument
260 nrect = RegionNumRects(region); in _glamor_convert_pad_region()
261 box = RegionRects(region); in _glamor_convert_pad_region()
294 * cover all the dest region on that direction. But latter, we need to
336 * Should translate the region to relative coords to the pixmap,
345 RegionPtr region, int *n_region, in _glamor_compute_clipped_regions() argument
362 DEBUGRegionPrint(region); in _glamor_compute_clipped_regions()
365 clipped_regions[0].region = RegionCreate(NULL, 1); in _glamor_compute_clipped_regions()
367 RegionCopy(clipped_regions[0].region, region); in _glamor_compute_clipped_regions()
380 saved_region = region; in _glamor_compute_clipped_regions()
381 region = in _glamor_compute_clipped_regions()
384 if (region == NULL) { in _glamor_compute_clipped_regions()
395 region, n_region, in _glamor_compute_clipped_regions()
398 RegionDestroy(region); in _glamor_compute_clipped_regions()
401 extent = RegionExtents(region); in _glamor_compute_clipped_regions()
424 RegionTranslate(region, right_shift * pixmap_width, in _glamor_compute_clipped_regions()
428 extent = RegionExtents(region); in _glamor_compute_clipped_regions()
458 DEBUGF("region to be repeated shifted \n"); in _glamor_compute_clipped_regions()
459 DEBUGRegionPrint(region); in _glamor_compute_clipped_regions()
485 /* Construct a rect to clip the target region. */ in _glamor_compute_clipped_regions()
518 DEBUGF("Start to clip repeat region: \n"); in _glamor_compute_clipped_regions()
520 RegionIntersect(&temp_region, &repeat_region, region); in _glamor_compute_clipped_regions()
570 DEBUGF("start to clip repeat[reflect] region: \n"); in _glamor_compute_clipped_regions()
572 RegionIntersect(&temp_region, &repeat_region, region); in _glamor_compute_clipped_regions()
657 clipped_regions[m].region = current_region; in _glamor_compute_clipped_regions()
668 RegionTranslate(region, -right_shift * pixmap_width, in _glamor_compute_clipped_regions()
677 RegionPtr region, in glamor_compute_clipped_regions() argument
682 return _glamor_compute_clipped_regions(pixmap, priv, region, n_region, repeat_type, in glamor_compute_clipped_regions()
692 RegionPtr region, int *n_region, in glamor_compute_transform_clipped_regions() argument
704 temp_extent = RegionExtents(region); in glamor_compute_transform_clipped_regions()
705 DEBUGF("dest region \n"); in glamor_compute_transform_clipped_regions()
706 DEBUGRegionPrint(region); in glamor_compute_transform_clipped_regions()
732 DEBUGF("copy to temp source region \n"); in glamor_compute_transform_clipped_regions()
753 * So we have to merge the fragmental region into one region
754 * if the clipped result cross the region boundary.
778 DEBUGF("Region %d:\n", i); in glamor_merge_clipped_regions()
779 DEBUGRegionPrint(clipped_regions[i].region); in glamor_merge_clipped_regions()
780 RegionAppend(temp_region, clipped_regions[i].region); in glamor_merge_clipped_regions()
784 DEBUGF("temp region: \n"); in glamor_merge_clipped_regions()
789 DEBUGF("need copy region: \n"); in glamor_merge_clipped_regions()
828 box = REGION_RECTS(clipped_regions[i].region); in glamor_merge_clipped_regions()
829 nbox = REGION_NUM_RECTS(clipped_regions[i].region); in glamor_merge_clipped_regions()
859 /* The first region will be released at caller side. */ in glamor_merge_clipped_regions()
861 RegionDestroy(clipped_regions[i].region); in glamor_merge_clipped_regions()
880 * smaller new width and height and to reduce the cross region
985 /* Merge all source regions into one region. */ in _glamor_process_transformed_clipped_region()
993 /* The required source areas are in one region, in _glamor_process_transformed_clipped_region()
999 temp_box = RegionExtents(clipped_regions[0].region); in _glamor_process_transformed_clipped_region()
1029 RegionPtr region, Bool force_clip, in glamor_composite_largepixmap_region() argument
1090 /* If we got an totally out-of-box region for a source or mask in glamor_composite_largepixmap_region()
1091 * region without repeat, we need to set it as null_source and in glamor_composite_largepixmap_region()
1095 RegionTranslate(region, -dest->pDrawable->x, -dest->pDrawable->y); in glamor_composite_largepixmap_region()
1097 /* need to transform the dest region to the correct sourcei/mask region. in glamor_composite_largepixmap_region()
1099 * target region may be transformed to cross a block boundary of the in glamor_composite_largepixmap_region()
1101 * We may have to split the original dest region to smaller region, and in glamor_composite_largepixmap_region()
1102 * make sure each region's transformed region can fit into one texture, in glamor_composite_largepixmap_region()
1103 * and then continue this loop again, and each time when a transformed region in glamor_composite_largepixmap_region()
1105 * with the new pixmap. If the transformed region doesn't cross a source/mask's in glamor_composite_largepixmap_region()
1121 RegionTranslate(region, dest->pDrawable->x, dest->pDrawable->y); in glamor_composite_largepixmap_region()
1142 RegionTranslate(region, dest->pDrawable->x, dest->pDrawable->y); in glamor_composite_largepixmap_region()
1154 *region can fit into one texture.*/ in glamor_composite_largepixmap_region()
1158 glamor_compute_clipped_regions_ext(dest_pixmap, region, in glamor_composite_largepixmap_region()
1164 region, in glamor_composite_largepixmap_region()
1167 DEBUGF("dest clipped result %d region: \n", n_dest_regions); in glamor_composite_largepixmap_region()
1181 DEBUGF("dest region %d idx %d\n", i, in glamor_composite_largepixmap_region()
1183 DEBUGRegionPrint(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()
1189 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1194 region, &n_source_regions, in glamor_composite_largepixmap_region()
1203 [i].region, in glamor_composite_largepixmap_region()
1211 /* Pad the out-of-box region to (0,0,0,0). */ in glamor_composite_largepixmap_region()
1221 DEBUGF("source clipped result %d region: \n", n_source_regions); in glamor_composite_largepixmap_region()
1231 … * The region is clipped against source and then we clip it against mask here.*/ in glamor_composite_largepixmap_region()
1232 DEBUGF("source region %d idx %d\n", j, in glamor_composite_largepixmap_region()
1234 DEBUGRegionPrint(clipped_source_regions[j].region); in glamor_composite_largepixmap_region()
1235 RegionTranslate(clipped_source_regions[j].region, in glamor_composite_largepixmap_region()
1240 [j].region, in glamor_composite_largepixmap_region()
1249 * the valid clip region should be the clip dest region rather than the in glamor_composite_largepixmap_region()
1250 * clip source region.*/ in glamor_composite_largepixmap_region()
1251 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1256 [i].region, in glamor_composite_largepixmap_region()
1263 … /* This mask region has transform or repeatpad, we need clip it against the previous in glamor_composite_largepixmap_region()
1264 * valid region rather than the mask region. */ in glamor_composite_largepixmap_region()
1269 clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1276 clipped_source_regions[j].region, in glamor_composite_largepixmap_region()
1281 /* Pad the out-of-box region to (0,0,0,0). */ in glamor_composite_largepixmap_region()
1291 DEBUGF("mask clipped result %d region: \n", n_mask_regions); in glamor_composite_largepixmap_region()
1293 #define COMPOSITE_REGION(region) do { \ in glamor_composite_largepixmap_region() argument
1299 dest_pixmap, region, \ in glamor_composite_largepixmap_region()
1307 DEBUGF("mask region %d idx %d\n", k, in glamor_composite_largepixmap_region()
1309 DEBUGRegionPrint(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1318 RegionTranslate(clipped_mask_regions[k].region, in glamor_composite_largepixmap_region()
1323 COMPOSITE_REGION(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1328 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1331 COMPOSITE_REGION(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()
1336 RegionTranslate(clipped_source_regions[j].region, in glamor_composite_largepixmap_region()
1341 COMPOSITE_REGION(clipped_source_regions[j].region); in glamor_composite_largepixmap_region()
1343 RegionDestroy(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1357 RegionTranslate(clipped_source_regions[j].region, in glamor_composite_largepixmap_region()
1361 COMPOSITE_REGION(clipped_source_regions[j].region); in glamor_composite_largepixmap_region()
1365 * region to do the composite. */ in glamor_composite_largepixmap_region()
1366 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1368 COMPOSITE_REGION(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()
1371 if (clipped_source_regions && clipped_source_regions[j].region) in glamor_composite_largepixmap_region()
1372 RegionDestroy(clipped_source_regions[j].region); in glamor_composite_largepixmap_region()
1388 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1393 region, &n_mask_regions, in glamor_composite_largepixmap_region()
1401 clipped_dest_regions[i].region, &n_mask_regions, in glamor_composite_largepixmap_region()
1406 /* Pad the out-of-box region to (0,0,0,0). */ in glamor_composite_largepixmap_region()
1418 DEBUGF("mask region %d idx %d\n", k, in glamor_composite_largepixmap_region()
1420 DEBUGRegionPrint(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1425 RegionTranslate(clipped_mask_regions[k].region, in glamor_composite_largepixmap_region()
1428 COMPOSITE_REGION(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1431 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1433 COMPOSITE_REGION(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()
1435 RegionDestroy(clipped_mask_regions[k].region); in glamor_composite_largepixmap_region()
1447 RegionTranslate(clipped_dest_regions[i].region, in glamor_composite_largepixmap_region()
1449 COMPOSITE_REGION(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()
1452 RegionDestroy(clipped_dest_regions[i].region); in glamor_composite_largepixmap_region()