Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSync changes from mozilla-central gfx/wr #3893
Merged
Conversation
…r=gw Support hiding slices to better understand what's on which layer, and to hide UI when not relevant. Requires using a HTTP server due to cross-scripting. Differential Revision: https://phabricator.services.mozilla.com/D67963 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/c034bb22ce039bd90289c6ca972b00206b069dfa
…or WebRender. r=gw,jrmuizel,jnicol Differential Revision: https://phabricator.services.mozilla.com/D67958 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/178ba8ef059cb90937f458692617a660bc961562
…muizel Depends on D67958 Differential Revision: https://phabricator.services.mozilla.com/D67959 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/72cbbe719b5d526b950d77691d36c234d21395fe
Depends on D67959 Differential Revision: https://phabricator.services.mozilla.com/D67960 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/86954fd812617a5b7e5d3e4182184c44b3bb0a33
…ts in SWGL. r=jrmuizel Depends on D67960 Differential Revision: https://phabricator.services.mozilla.com/D67961 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/a6414fe1b3ecc526b2c524ae13a00467264bb07b
… WR shader list. r=gw Depends on D67961 Differential Revision: https://phabricator.services.mozilla.com/D67962 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/86555508bdba0ca56663ca9b6ec92079cf06ac21
…cache. r=gw We already have a cooldown from texture cache items being deallocated a certain amount of time and frames after their last use so we can deallocate texture arrays as soon as they are completely empty. We do this at the end of the frame to avoid deallocating and reallocating within the frame. It's better to reclaim texture memory this way than run into maybe_reclaim_shared_memory which will throw away everything and cause new allocations on the next frame. Differential Revision: https://phabricator.services.mozilla.com/D68050 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/cb7a03e737951349193fb99410bb907991f7bc35
The current heuristic in TextureCache::maybe_reclaim_shared_memory pretty much clears the cache every 5 seconds. Clearing the cache is prtty drastic though, because it causes us to re-upload data and reallocate several textures on the next frame. We really only want to do it when the savings are big, which happens less often now that texture array layer count is capped at 16 and that textures are released as soon as they are empty. This makes us clear the cache less often by augmenting the threshold to 16 megabytes and only considering texture regions that would not be reallocated right away (since we grow some texture arrays more than one region at a time). Differential Revision: https://phabricator.services.mozilla.com/D68051 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/61582f6d817a401e12c32340873d3d781e6cfaf2
…jrmuizel The texture array is currently grown layer by layer and we typically get to 3 or 4 layers over several frames by the time we are done loading a simple wikipedia page. Differential Revision: https://phabricator.services.mozilla.com/D68056 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/167562affb96a1777609f6c6bb6f0a1dab520309
|
@bors-servo r=auto |
|
|
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
moz-gfx commentedMar 25, 2020
No description provided.