mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 14:10:14 +01:00
drm/i915: Discard redundant solitary clips during fill
This commit is contained in:
parent
7cea9ae290
commit
f79b2ceea4
1 changed files with 10 additions and 0 deletions
|
|
@ -1343,6 +1343,16 @@ i915_surface_fill (void *abstract_dst,
|
|||
if (_cairo_clip_contains_rectangle (clip, &extents))
|
||||
clip = NULL;
|
||||
|
||||
if (extents.is_bounded && clip != NULL) {
|
||||
cairo_clip_path_t *clip_path;
|
||||
|
||||
if (((clip_path = _clip_get_solitary_path (clip)) != NULL) &&
|
||||
_cairo_path_fixed_equal (&clip_path->path, path))
|
||||
{
|
||||
clip = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (clip != NULL) {
|
||||
clip = _cairo_clip_init_copy (&local_clip, clip);
|
||||
have_clip = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue