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

Merged
merged 2 commits into from Jul 2, 2020
Merged

Conversation

@moz-gfx
Copy link

moz-gfx commented Jul 2, 2020

No description provided.

Jim Blandy added 2 commits Jul 2, 2020
swgl::Context::init_default_framebuffer takes two new arguments, for providing a
frame buffer owned by something else. swgl::Context::get_color_buffer returns an
extra value, describing the stride of the buffer in addition to the width.

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

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/5f34493d83d344553bcd2bd7879b05082908e5ba
…WGL. r=lsalzman

The `clear_caches_with_quads` flags is meant to work around a bug in some
drivers' scissored clears, but its implementation uses the `GL_ALWAYS` depth
comparison function, which SWGL doesn't support.

SWGL does scissored clears very well, so simply turning this workaround off on
SWGL avoids the problem and gets good results.

Of course we could just make SWGL support `GL_ALWAYS`, but that would be kind of
annoying, since it basically disables depth checks altogether, and we want to
use entirely different paths when depth checks aren't needed.

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

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

moz-gfx commented Jul 2, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2020

📌 Commit 823f179 has been approved by auto

@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2020

Testing commit 823f179 with merge ae4b9c3...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2020

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

@bors-servo bors-servo merged commit ae4b9c3 into servo:master Jul 2, 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

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