Closed Bug 1681310 Opened 4 years ago Closed 4 years ago

Add a code path for batched texture uploads via glTexImage2D

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Bug 1661528, introduced a batched texture upload mechanism using PBOs for ocnfigurations that havea high driver overhead per texture upload.

We also have this overhead on low-end Intel on Windows, however we use glTexSubImage2D to upload textures on this configuration so we need a bit of extra plumbing.

Blocks: wr-perf-p1

Our existing batched texture upload logic works with pixel buffer objects which we don't use with ANGLE.
The motivation is to avoid expensive driver overhead from submitting many glTexSubImage2D calls (one for each texture cache item) on low-end Intel Windows configurations.

On Windows+Intel it is much faster to use batched draw calls to copy from staging textures to texture cache than using CopySubResourceRegion (when there is a high number of copies).

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/067757947538 Add a batched texture upload code path using glTexSubImage2D. r=jnicol
Blocks: 1690247
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Blocks: 1690685
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: