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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Commits on Mar 12, 2024

  1. Bug 1884145 - Document the quad rendering strategy. r=gw

    And reorganize the branches in get_prim_render_strategy to reduce nesting
    
    Differential Revision: https://phabricator.services.mozilla.com/D203919
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/f89ecc056f703879d05ea5fb90055c2dda7c6955
    nical authored and mrobinson committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    73985ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae18367 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdd4539 View commit details
    Browse the repository at this point in the history
  4. Bug 1884403 - WebRender should only depend on glean when building f…

    …or Gecko r=jrmuizel
    
    Make glean an optional dependency that is only enabled when building
    WebRender for Gecko.
    
    Differential Revision: https://phabricator.services.mozilla.com/D204059
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/10af6b2ff03bd7512d53f3ed02f7e83dba7c57ba
    mrobinson committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    5e19307 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Configuration menu
    Copy the full SHA
    944d370 View commit details
    Browse the repository at this point in the history
  2. Bug 1883873 - Make SurfaceInfo::get_surface_rect return a DeviceIntRe…

    …ct. r=gfx-reviewers,gw
    
    While investigating why get_surface_rect sometimes returns an empty rect (causing bad render task sizes), I noticed that all users of get_surface_rect use it to size surfaces, rely on the returned rect to be snapped to integer coordinates, and some even round the coordinates a second time. The documentation of the function states that its purpose is to provide a rect suitable for surface allocation. This patch bakes the expectation into the type and removes some redundant operations.
    
    Differential Revision: https://phabricator.services.mozilla.com/D203738
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/eae4f8752721b2e1361c4c1ea57e038a01e557ea
    nical committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    1919645 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18420ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6242655 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b06c997 View commit details
    Browse the repository at this point in the history
  6. Backed out 4 changesets (bug 1883863, bug 1883873, bug 1769492) for c…

    …ausing webrender bustages in conftest.c CLOSED TREE
    
    Backed out changeset 987284103c26 (bug 1769492)
    Backed out changeset dd1b3d97c6a8 (bug 1769492)
    Backed out changeset 4effb464f604 (bug 1883863)
    Backed out changeset eae4f8752721 (bug 1883873)
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/d9ad55d66d8523561815b7fbeef13f84428eb55b
    Cristian Tuns committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    6e4ff49 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Bug 1884583 - Make some of cs_border_segment's varyings highp. r=gw

    The vClipRadii varying being changed to mediump is causing borders to
    be clipped incorrectly at certain zoom levels. This patch reverts it
    to highp to avoid the issue.
    
    As a precaution it conservatively reverts several other varyings in
    this shader to be highp as well. Although the others are not
    responsible for the issue reported in this bug, using mediump for
    varyings related to positioning could cause similar problems.
    
    Differential Revision: https://phabricator.services.mozilla.com/D204507
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/7afa472a8cac8d854d0d9c68a3c18a590978fffe
    jamienicol committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    491e5a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2024

  1. Bug 1883873 - Make SurfaceInfo::get_surface_rect return a DeviceIntRe…

    …ct. r=gfx-reviewers,gw
    
    While investigating why get_surface_rect sometimes returns an empty rect (causing bad render task sizes), I noticed that all users of get_surface_rect use it to size surfaces, rely on the returned rect to be snapped to integer coordinates, and some even round the coordinates a second time. The documentation of the function states that its purpose is to provide a rect suitable for surface allocation. This patch bakes the expectation into the type and removes some redundant operations.
    
    Differential Revision: https://phabricator.services.mozilla.com/D203738
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/038ff8035b29b9052311d9cf616a2aced886896c
    nical committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    757bf06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b50c2b2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9daaf08 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee690f3 View commit details
    Browse the repository at this point in the history
  5. Bug 1884791 - Avoid shader miscompilation on some Adreno drivers. r=gw

    Webrender's glslopt-optimized shaders encounter a miscompilation on
    some Adreno driver versions regarding fetching empty clip tasks. This
    patch reshuffles the code in such a way as to avoid the
    bug. Unfortunately the specific cause of the miscompilation remains
    unknown, meaning we must take extra care not to regress it in the
    future.
    
    Differential Revision: https://phabricator.services.mozilla.com/D204864
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/488c57bb8ceed6da3f0be935156a480cdb92bc32
    jamienicol committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    57d904f View commit details
    Browse the repository at this point in the history