Alpha auto-mask demotion silently off under VK #82

Closed
opened 2026-09-27 05:34:06 +00:00 by sky_line · 2 comments
Owner

LL demotes alpha-blend faces with a hard alpha gradient to alpha-mask (sorting/perf win). Under VK the alpha-gradient value is always 255, so auto-mask demotion never happens. Source: research/gl_removal_map.md §6.

LL demotes alpha-blend faces with a hard alpha gradient to alpha-mask (sorting/perf win). Under VK the alpha-gradient value is always 255, so auto-mask demotion never happens. Source: research/gl_removal_map.md §6.
sky_line added this to the VK parity milestone 2026-09-27 05:34:06 +00:00
Author
Owner

Status (code audit at 4d90800218): demotion now happens under VK via LL's alpha-mask analysis run in the background (LLImageGL::vkPostAlphaAnalysis, 473e4999b7) feeding canRenderAsMask(). Still dead: the content-driven gradient path. LLCleanTexture::uploadSlot returns before the scan that sets alpha_gradient_pct, so alphaGradientPct() is always 255 and RenderCleanAutoMaskMaxGradient has no effect.

Status (code audit at 4d90800218): **demotion now happens under VK** via LL's alpha-mask analysis run in the background (LLImageGL::vkPostAlphaAnalysis, 473e4999b7) feeding canRenderAsMask(). Still dead: the content-driven gradient path. LLCleanTexture::uploadSlot returns before the scan that sets alpha_gradient_pct, so alphaGradientPct() is always 255 and RenderCleanAutoMaskMaxGradient has no effect.
Author
Owner

Verified done: auto-mask demotion works under VK: background alpha analysis feeds canRenderAsMask, the gradient path is revived (RenderCleanAutoMaskMaxGradient is live again), rigged/glowing blend faces are never demoted, as in LL. Commits: 473e4999b7, 7e514048e3, 61b82e65b2, 4d0c32651d. Shipped in v1.0.0-beta.1.

Verified done: auto-mask demotion works under VK: background alpha analysis feeds canRenderAsMask, the gradient path is revived (RenderCleanAutoMaskMaxGradient is live again), rigged/glowing blend faces are never demoted, as in LL. Commits: 473e4999b7, 7e514048e3, 61b82e65b2, 4d0c32651d. Shipped in v1.0.0-beta.1.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#82
No description provided.