Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync changes from mozilla-central gfx/wr #3974

Merged
merged 7 commits into from Jun 9, 2020
Merged

Conversation

@moz-gfx
Copy link

moz-gfx commented Jun 4, 2020

No description provided.

cbrewster and others added 2 commits Jun 4, 2020
…iction changes. r=kvark

* Maintain a running total of bytes allocated in both standalone and
  shared cache regions. This is used as a threshold to know when to
  force a mid-frame eviction. Previously, as soon as the currently
  allocated set of shared textures were full, we'd force an eviction.
  This means that in typical use cases, we were forcing an eviction
  as soon as the texture cache is > 16 MB, which is inefficient.

* Separate out picture cache eviction from the normal cache eviction
  path. This will be important in the next patch which will change
  the eviction algorithm for all shared / standalone entries.

* Remove Eviction::Eager as a policy option for shared and standalone
  textures. As part of this, switch render task cache entries to use
  Eviction::Auto. This is a better option anyway, there is no real
  benefit to evicting render tasks as soon as possible - they should
  be expired based on usage, just as for normal cache entries.

Differential Revision: https://phabricator.services.mozilla.com/D77983

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/a900282391e15be8a8f9ed9782a550ff6be11cc7
@moz-gfx
Copy link
Author

moz-gfx commented Jun 4, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2020

📌 Commit d205952 has been approved by auto

bors-servo added a commit that referenced this pull request Jun 4, 2020
Sync changes from mozilla-central gfx/wr
@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2020

Testing commit d205952 with merge aed251f...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2020

💔 Test failed - status-taskcluster

@moz-gfx
Copy link
Author

moz-gfx commented Jun 4, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2020

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
@bors-servo
Copy link
Contributor

bors-servo commented Jun 4, 2020

📌 Commit d205952 has been approved by auto

cbrewster and others added 2 commits Jun 5, 2020
…dback r=gw

When handling mix-blend readbacks, we need to calculate the origin of the source picture in the backdrop's space.
Before this patch, this was done by scaling the source picture origin by the backdrop's device pixel scale.
However, this is the incorrect scaling; We really want the relative scale between source and backdrop instead.
This patch computes the relative scaling from the device pixel scale of both the source and backdrop pictures.

This bug likely went unnoticed because the device pixel scale used to be 1 in most cases, but now we sometimes
increase the device pixel scale for raster roots.

Differential Revision: https://phabricator.services.mozilla.com/D78217

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/b4db2b3b6b8e0fecdcfd14d7129e9372cb9666de
…iction changes. r=Bert,kvark

* Maintain a running total of bytes allocated in both standalone and
  shared cache regions. This is used as a threshold to know when to
  force a mid-frame eviction. Previously, as soon as the currently
  allocated set of shared textures were full, we'd force an eviction.
  This means that in typical use cases, we were forcing an eviction
  as soon as the texture cache is > 16 MB, which is inefficient.

* Separate out picture cache eviction from the normal cache eviction
  path. This will be important in the next patch which will change
  the eviction algorithm for all shared / standalone entries.

* Remove Eviction::Eager as a policy option for shared and standalone
  textures. As part of this, switch render task cache entries to use
  Eviction::Auto. This is a better option anyway, there is no real
  benefit to evicting render tasks as soon as possible - they should
  be expired based on usage, just as for normal cache entries.

Differential Revision: https://phabricator.services.mozilla.com/D77983

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/41191094ff58232189fa23459130a070def08045
@moz-gfx
Copy link
Author

moz-gfx commented Jun 5, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 5, 2020

📌 Commit c4a2af4 has been approved by auto

Instead of using the default TreePrinter implementation which sends output
to stdout, collect it into a Vec<u8> and use the debug! macro to log it,
which sends it to a more useful destination (logcat) on Android.

Depends on D78536

Differential Revision: https://phabricator.services.mozilla.com/D78537

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/4e89164de2d6bbefbbabcce580658a69d12b149b
@moz-gfx
Copy link
Author

moz-gfx commented Jun 6, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 6, 2020

📌 Commit 5ae2676 has been approved by auto

@moz-gfx
Copy link
Author

moz-gfx commented Jun 8, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 8, 2020

📌 Commit 10fdfe5 has been approved by auto

@staktrace
Copy link
Contributor

staktrace commented Jun 9, 2020

@staktrace
Copy link
Contributor

staktrace commented Jun 9, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 9, 2020

📌 Commit 0f03db2 has been approved by auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 9, 2020

Testing commit 0f03db2 with merge 29b93f2...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 9, 2020

☀️ Test successful - status-taskcluster
Approved by: auto
Pushing 29b93f2 to master...

@bors-servo bors-servo merged commit 29b93f2 into servo:master Jun 9, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.