Skip to content

Commit

Permalink
Bug 1780567 - Fix shared target allocation for tasks with Existing mo…
Browse files Browse the repository at this point in the history
…de r=gfx-reviewers,jgilbert

Differential Revision: https://phabricator.services.mozilla.com/D152474
  • Loading branch information
Glenn Watson committed Jul 21, 2022
1 parent 71ff4e1 commit 246371e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
24 changes: 24 additions & 0 deletions gfx/tests/crashtests/1780567.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<style>
* {
overflow-inline: hidden;
border-end-end-radius: 14mm ! important;
border-left-color: WindowFrame;
backdrop-filter: saturate(70%);
}

INPUT {
outline: medium invert auto;
}

H2 {
padding: 69% !important;
}
</style>
</head>
<body>
<h2 dir='ltr'><dfn> <i> <input></i> </dfn></h2></body>
</html>

2 changes: 2 additions & 0 deletions gfx/tests/crashtests/crashtests.list
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,5 @@ pref(layout.css.backdrop-filter.enabled,true) load 1771294.html
pref(layout.css.backdrop-filter.enabled,true) load 1771293.html
pref(layout.css.backdrop-filter.enabled,true) load 1771556.html
pref(layout.css.backdrop-filter.enabled,true) load 1771561.html
load 1780567.html

5 changes: 4 additions & 1 deletion gfx/wr/webrender/src/render_task_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,11 @@ impl RenderTaskGraphBuilder {
let mut location = None;
let kind = task.kind.target_kind();

// If a task is used as part of an existing-chain then we can't
// safely share it (nor would we want to).
let can_use_shared_surface =
task.kind.can_use_shared_surface();
task.kind.can_use_shared_surface() &&
task.free_after != PassId::INVALID;

if can_use_shared_surface {
// If we can use a shared surface, step through the existing shared
Expand Down

0 comments on commit 246371e

Please sign in to comment.