Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb665348f6d189cc20822cf04ee1c6cd9bc3c118
https://github.com/WebKit/WebKit/commit/fb665348f6d189cc20822cf04ee1c6cd9bc3c118
Author: Nikolas Zimmermann <[email protected]>
Date: 2025-12-18 (Thu, 18 Dec 2025)
Changed paths:
M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp
Log Message:
-----------
[TextureMapper] Add UV bounds clamping support to drawTextureFragment()
https://bugs.webkit.org/show_bug.cgi?id=304404
Reviewed by Carlos Garcia Campos.
Commit e5654d7e3839 added support for physical/logical size differences
in BitmapTexture for drawTexture(), but missed drawTextureFragment().
When textures have larger allocated sizes than their logical sizes
(e.g., due to GPU alignment requirements like 64x64 tiling), UV
coordinates must be adjusted to sample only the logical region. This
prevents rendering artifacts from bilinear filtering sampling texels
in the padding area.
Needs manual testing (non-linear textures + damage propagation).
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::drawTextureFragment):
Canonical link: https://commits.webkit.org/304681@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications