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 #3802
Merged
Conversation
This chanes the shader parsing code to only inject #included shader sources once (the first time) if they are included multiple times. This will allow some extra flexibility needed by the multi-brush shader. Differential Revision: https://phabricator.services.mozilla.com/D53651 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/6762aab1845925b804e4f116cb169a5e614844fc
…. r=gw This will allow the upcoming super-brush shader to select its behavior at runtime. Differential Revision: https://phabricator.services.mozilla.com/D53724 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/6386aa316da906a59f00cd2191105f4c1cefb833
This is an experiment with only image and solid to see what the infrastructure can be like. If it works out I'll extend the it with more brush types. More work will be needed to get text rendering in there as well. The multi-brush shader includes all brushes that it potentially needs suport for. Which brushes actually get compiled in is then specified via WR_FEATURE defines. Since brushes can't have the same names for their entry points, they specify the function to use via a macros (WR_BRUSH_VS_FUNCTION and WR_BRUSH_FS_FUNCTION). Differential Revision: https://phabricator.services.mozilla.com/D53725 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/550591122788f2adb78902e63a885f34e41fed49
…ings. r=gw The 'multi-brush' shader will have to dynamically switch between different brushes. In order to support that without needing the sum of all brush varying locations, allow aliasing a number of generic slots. This patch makes the assumption that one a vec2 and a vec4 cost the same amount of varying register space, which is suggested by the glsl specification about shader locations. If it is not the case we can add more granularity to the varying slots which are all vec4 at the moment. This also assumes that an unused varying is always optimized out. Differential Revision: https://phabricator.services.mozilla.com/D53726 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/e5f6739f790d1bd685a41fc06cad3ee024185155
Differential Revision: https://phabricator.services.mozilla.com/D53728 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/ba4668d01dc53e2dcb2a44fe4b7bad2089eb116f
Differential Revision: https://phabricator.services.mozilla.com/D53993 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/0d89ea8665dfc2c9efc40054ecd29f5227172f06
…r=gw Differential Revision: https://phabricator.services.mozilla.com/D53994 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/5768997fb3919368e763df2c7cb9198b6d3995ff
…ture. r=gw Differential Revision: https://phabricator.services.mozilla.com/D53995 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/54efcc9976cf17987c5b3bbfaf120ea76f9b395e
…ture. r=gw Differential Revision: https://phabricator.services.mozilla.com/D53996 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/84e767a3763735eab3fefadaf99de5cf85a1c806
Differential Revision: https://phabricator.services.mozilla.com/D53998 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/beeeb1889588204a7865327c4e2bf7710b17a938
…. r=gw In GLES the default precision for ints is only 16 bits in the fragment shader. Differential Revision: https://phabricator.services.mozilla.com/D54000 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/a8ee6dbf146b0d1ef4d3348539d1ad439f18a26c
The GLSL compiler appears to get confused by a function that just returns a defined constant. See https://github.com/servo/webrender/wiki/Driver-issues#bug-1594128---glsl-on-macos-is-confused-by-a-function-that-just-returns-a-constant Differential Revision: https://phabricator.services.mozilla.com/D54691 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/39f51911efa8fc0969cd32fd0c4f2ef5d1651ae5
|
@bors-servo r+ |
|
|
bors-servo
added a commit
that referenced
this pull request
Nov 26, 2019
Sync changes from mozilla-central
|
|
…ors. r=gw Differential Revision: https://phabricator.services.mozilla.com/D54537 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/57869dbf0a8be30490a70702edfa32038ee1dbf6
Differential Revision: https://phabricator.services.mozilla.com/D54612 [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/00ccdb940ea2b0c4be38b4b80e0c76b17ac9c6c4
….list . CLOSED TREE Backed out changeset 651a7556124b (bug 1596086) Backed out changeset ab2e0e2a9048 (bug 1596086) Backed out changeset 00ccdb940ea2 (bug 1596086) Backed out changeset 57869dbf0a8b (bug 1596086) [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/284dc1d2f42b0586a9a629615aaff21234790e5d
|
@bors-servo r+ |
|
|
|
bors-servo
added a commit
that referenced
this pull request
Nov 27, 2019
Sync changes from mozilla-central
|
|
…ns a=backout Backed out changeset 39f51911efa8 (bug 1594128) Backed out changeset a8ee6dbf146b (bug 1594128) Backed out changeset beeeb1889588 (bug 1594128) Backed out changeset 84e767a37637 (bug 1594128) Backed out changeset 54efcc9976cf (bug 1594128) Backed out changeset 5768997fb391 (bug 1594128) Backed out changeset 0d89ea8665df (bug 1594128) Backed out changeset ba4668d01dc5 (bug 1594128) Backed out changeset e5f6739f790d (bug 1594128) Backed out changeset 550591122788 (bug 1594128) Backed out changeset 6386aa316da9 (bug 1594128) Backed out changeset 6762aab18459 (bug 1594128) [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/440eac58d324fd982a89a21c25a6c9d2a9c8ccf6
|
@bors-servo r+ |
|
|
|
bors-servo
added a commit
that referenced
this pull request
Nov 27, 2019
Sync changes from mozilla-central
|
|
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 commentedNov 26, 2019
No description provided.