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 #3919

Merged
merged 4 commits into from Apr 15, 2020
Merged

Commits on Apr 15, 2020

  1. Bug 1629724 - Improve the GC strategy of the render target pool. r=nical

    Only drop targets from the render target pool when the size of
    the pool is larger than an arbitrary threshold (this is 32 MB
    for now), _and_ the render target hasn't been used in the last
    60 frames of rendering.
    
    This reduces the number of allocation thrashing of textures in
    the render target pool on most pages.
    
    Differential Revision: https://phabricator.services.mozilla.com/D70782
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/c6ed30c910c03820a01baec4dd7e4884e8e37cac
    Glenn Watson authored and moz-gfx committed Apr 15, 2020
  2. Bug 1627299 - Remove MsgSender/MsgReceiver. r=kvark

    These just wrap regular std Sender/Receiver without providing any value. Serialize/Deserialize was implement manually for MsgSender/MsgReceiver to assert. Serde being amazing, it provides with annotations to not require the traits to be implemented on some enum variants and assert at runtime which functionally equivalent but less error-prone than the fake trait implementations.
    
    Removing the rest of channel.rs is coming in a followup.
    
    Differential Revision: https://phabricator.services.mozilla.com/D70021
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/b0d79edece1314cc5962c1f625bdffb947419425
    nical authored and moz-gfx committed Apr 15, 2020
  3. Bug 1629835 - Ensure PBO upload strides are a multiple of 64 pixels o…

    …n adreno r=kvark
    
    Previously we were using 256 bytes (which happens to be equal to 64
    pixels for RGBA8 textures). A recent change to the GPU Cache uncovered
    the fact that the requirement is actually 64 pixels, eg 1024 bytes for
    RGBAF32 textures.
    
    Differential Revision: https://phabricator.services.mozilla.com/D70915
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/f5be65b0b22b10f878d6eb297adb68eb3ab82e39
    jamienicol authored and moz-gfx committed Apr 15, 2020
You can’t perform that action at this time.