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

Batch allocation refactor #3957

Closed
wants to merge 5 commits into from
Closed

Batch allocation refactor #3957

wants to merge 5 commits into from

Conversation

@kvark
Copy link
Member

kvark commented May 21, 2020

No description provided.

@kvark kvark force-pushed the kvark:batch-alloc-refactor branch from a6db6d7 to 0c8895f May 22, 2020
@gw3583
gw3583 approved these changes May 26, 2020
Copy link
Collaborator

gw3583 left a comment

A couple of minor questions in the comments, looks good otherwise!

It might be worth taking a quick look at the opaque / alpha sampler counts in the profiler overlay on a few pages before / after this change, just to be sure we're not adding more overdraw due to some weird edge case?

@@ -211,102 +369,116 @@ impl AlphaBatchList {
// The bounding box of everything at this Z plane. We expect potentially
// multiple primitive segments coming with the same `z_id`.
z_bounding_rect: &PictureRect,
z_id: ZBufferId,
_z_id: ZBufferId,

This comment has been minimized.

@gw3583

gw3583 May 26, 2020

Collaborator

I guess we don't need this check anymore, but let's remove the param altogether if that's the case?

}
}
}
// Note: we are able to reorder the opaque batches as needed, theoretically.

This comment has been minimized.

@gw3583

gw3583 May 26, 2020

Collaborator

I don't think this will have any effect on fill rate. By definition, batch merging only occurs for non-overlapping regions of a target (separate render tasks). Does that have an effect on what we should do here by default?

@kvark
Copy link
Member Author

kvark commented May 26, 2020

Thank you! I forgot to mention (here) that the latest code to review is in https://phabricator.services.mozilla.com/D76715

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2020

The latest upstream changes (presumably #3982) made this pull request unmergeable. Please resolve the merge conflicts.

@kvark kvark closed this Jun 13, 2020
@kvark kvark deleted the kvark:batch-alloc-refactor branch Jun 13, 2020
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.