Closed Bug 1621212 Opened 4 years ago Closed 4 years ago

Don't use square texture cache pages for very thin items

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: nical, Assigned: nical)

Details

Attachments

(1 file)

The texture cache has rectangular page sizes for thin entries, however it currently defaults to square pages when the smallest extent is under 33 pixels. For example a 60x245 entry will get a 64x256 page, while a 16x245 entry gets a 256x256 page.

The code that picks the texture cache slab size does not consider snapped extents under 64 pixels for rectangular pages, causing for example a 16x500 request to go into a 512x512 page.
This commit allows very thin requests to get a 64x512 page.

Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/03f0fbdc0441
Don't default to square texture cache pages when the smallest extent is 32 pixels or less. r=gw
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: