Skip to content

Conversation

kvark
Copy link
Member

@kvark kvark commented Aug 3, 2018

Fixes #2930
Also, apparently, we were uploading way more data then we needed. Say, if the client (Gecko) stores texture data in a 1GB memory buffer, and it wants to upload the left-top texel only, we'd fill up the PBO with all of that 1GB... But the good news is - this should be fixed with this PR.

TODO: gecko try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=78f3185784677b34223ed2cce9cd2358f0c93209


This change is Reviewable

@kvark kvark requested a review from gw3583 August 3, 2018 16:53
@gw3583
Copy link
Contributor

gw3583 commented Aug 3, 2018

Oh, nice find! 👍

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit b48e32c has been approved by gw3583

@bors-servo
Copy link
Contributor

⌛ Testing commit b48e32c with merge cd50308...

bors-servo pushed a commit that referenced this pull request Aug 3, 2018
Fix texture upload size and track it

Fixes #2930
Also, apparently, we were uploading way more data then we needed. Say, if the client (Gecko) stores texture data in a 1GB memory buffer, and it wants to upload the left-top texel only, we'd fill up the PBO with all of that 1GB... But the good news is - this should be fixed with this PR.

~~TODO:~~ gecko try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=78f3185784677b34223ed2cce9cd2358f0c93209

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2950)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: gw3583
Pushing cd50308 to master...

@bors-servo bors-servo merged commit b48e32c into servo:master Aug 3, 2018
@kvark kvark deleted the tex-upload branch August 3, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track number of bytes uploaded per frame

3 participants