Skip to content

Remove duplicate LCD enum checks from Plot shader tests - #25

Merged
imakris merged 1 commit into
masterfrom
test-quality/plot-lcd-contract-dedup-20261020
Oct 20, 2026
Merged

imakris merged 1 commit into
masterfrom
test-quality/plot-lcd-contract-dedup-20261020

Conversation

@imakris

@imakris imakris commented Oct 20, 2026

Copy link
Copy Markdown
Member

Why

The shader-reference suite repeats the same five LCD enum values and shader-uniform helper calls already checked by vnm_msdf_text/tests/lcd_contract_tests.cpp. Keeping a second copy adds maintenance without a distinct regression boundary.

Changes

Remove only the duplicate enum/uniform case and its invocation. Keep the shader-specific source checks, including filter integration, channel ordering, sampling and opaque-background rules. Add a short ownership comment pointing to the contract suite. No production behavior or test registration changes.

This addresses the narrow, immediately actionable part of test-audit finding F08. Replacing the remaining source-spelling oracles with rendering behavior is deferred; this change does not claim to solve that separate issue.

Validation

Compiled and ran the remaining shader-reference executable with native g++ and warnings enabled. Compiled and ran the unchanged shared lcd_contract_tests owner: both contract cases pass. The companion Plot/MSDF shader source check also passes. Qt/GPU rendering and full project CMake builds were not run. Qt is unavailable here, and these selected CPU tests require neither Qt nor a GPU.

Current work checked

Compared current master and the latest merged PR diff. No open PR was present in this repository at the duplicate-work check. The recent atlas-sizing change does not remove this enum-only duplicate.

Independent source review found no concrete blockers in the bounded removal or the retained contract ownership.

The shared LCD contract suite already owns all five enum and uniform mappings.
Keep Plot's distinct shader integration checks while removing the repeated
mapping case.
@imakris
imakris merged commit 341c412 into master Oct 20, 2026
12 checks passed
@imakris
imakris deleted the test-quality/plot-lcd-contract-dedup-20261020 branch October 20, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant