Repository navigation
Use mipmaps and trilinear filtering for large, standalone textures. - #2408
Conversation
Images that are large (currently this means one dimension > 512) are placed into standalone textures rather than allocated into the shared texture cache pages. Enabling mipmaps and trilinear filtering on this subset of images is very simple, and also fixes the majority of images where lack of mipmaps are a noticeable quality issue. In the future, we can expand this to support mipmaps within the shared cache pages, if desired, by manually drawing the mips with a shader and making use of the mip-bias parameter to disable mip selection for shared cache regions without mips. Fixes servo#2023.
|
@bors-servo r+ |
|
📌 Commit 19f43d9 has been approved by |
Use mipmaps and trilinear filtering for large, standalone textures. Images that are large (currently this means one dimension > 512) are placed into standalone textures rather than allocated into the shared texture cache pages. Enabling mipmaps and trilinear filtering on this subset of images is very simple, and also fixes the majority of images where lack of mipmaps are a noticeable quality issue. In the future, we can expand this to support mipmaps within the shared cache pages, if desired, by manually drawing the mips with a shader and making use of the mip-bias parameter to disable mip selection for shared cache regions without mips. Fixes #2023. <!-- 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/2408) <!-- Reviewable:end -->
|
☀️ Test successful - status-appveyor, status-taskcluster, status-travis |
|
@glennw this caused a couple of linux reftest regressions. One (dom/html/reftests/bug917595-exif-rotated.jpg) is probably fuzzable but the other (layout/reftests/bugs/364968-1.xul) is not. I verified that this PR was the source of the regression. It looks like the try push you did earlier in this PR was testing these changes in isolation, so maybe it doesn't play well with something else that has landed in WR since the last WR update into gecko. |
|
@staktrace The xul failure should be fixed by #2409. I think we can fuzz the other failure. |
Images that are large (currently this means one dimension > 512) are
placed into standalone textures rather than allocated into the
shared texture cache pages. Enabling mipmaps and trilinear filtering
on this subset of images is very simple, and also fixes the majority
of images where lack of mipmaps are a noticeable quality issue.
In the future, we can expand this to support mipmaps within the
shared cache pages, if desired, by manually drawing the mips with
a shader and making use of the mip-bias parameter to disable mip
selection for shared cache regions without mips.
Fixes #2023.
This change is