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

Merged
merged 2 commits into from Jun 12, 2020
Merged

Conversation

@moz-gfx
Copy link

moz-gfx commented Jun 12, 2020

No description provided.

kvark and others added 2 commits Jun 12, 2020
The main idea here is lifting the storages of batches, instances, and instance rects,higher up. Currently, to the level of the alpha/opaque batcher.
In the short term, this would result in less heap allocations on frame building.
For example, we no longer have a Vec<InstanceRect> per batch, stored in a separate Vec,
and we don't have a separate Vec<InstanceData> per batch.
There is also a matter of code refactor and cleanup that could make our life better.

In the longer term, once Angle is updated, we'll be able to lift the VBO updates up
accordingly, and use baseInstance drawing with them.

Sub-commits:
- Minor refactor of the batch intersection logic
- Instance stacks for transparent alpha batches
- Use instance stacks for opaque batches as well
- Implement and re-enable batch list merging
- Encapsulate instance stack LRU indexing into a class
- Internal BatchList type, bumped StackIndex size.
- Adjust the tests
- Test the stack count of 4

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

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

moz-gfx commented Jun 12, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2020

📌 Commit 6c1ce58 has been approved by auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2020

Testing commit 6c1ce58 with merge 04d0c13...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2020

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

@bors-servo bors-servo merged commit 04d0c13 into servo:master Jun 12, 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

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