Repository navigation
tests/test_canvas: a picture's sampling and over, held pixel by pixel - #1106
Merged
Merged
Conversation
On OpenGL and Vulkan offscreen, the canvas over the whole 128 x 128 frame, every expected pixel worked out in the test: - engine_texture_new: a 4 x 4 picture on a card whose uv runs 0 to 2; all 16,384 pixels are their texel exactly (nearest, repeating, bytes through no colour curve, top row first). - `over`: six cards, seven bands within 2/255: a draw without `over` is written as it is, one with it is src*a + dst*(1-a), in the order queued, depth-tested and writing depth. Linear filtering, clamping, an sRGB picture, `over` off, or an `over` draw writing no depth each fail it. Pairs in tests/lib/canvascard, SPIR-V by tools/canvas_test_spirv.ae. Added to ci.sh's GPU_SUITES. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The suite #1105 said was missing: what
engine_texture_newandoverpromise, asserted on OpenGL and on Vulkan, offscreen through the renderer-level canvas calls, the canvas over the whole 128 x 128 frame and every expected pixel worked out in the test, not by a renderer.over: six cards in order, seven bands checked to 2/255. A draw withoutoveris written as it is; one with it is srca + dst(1-a), in the order queued. A card behind everything doesn't show, and a see-through card behind one drawn before it doesn't either, since the earlier one wrote depth.Its pairs are
tests/lib/canvascard; their SPIR-V (tests/lib/canvascard_spirv, made with glslang 16.6.0) is generated bytools/canvas_test_spirv.ae. Added toci.sh's GPU_SUITES after test_batching; a paragraph under "Checked by" indocs/canvas.md; a change fragment.Proven to catch what it is for: nine broken renderers each fail it (GL linear, GL clamp, GL sRGB, GL
overoff; VK linear, VK clamp, VK sRGB, VKoveroff, VKoverwriting no depth).Run:
Not run: Windows, and the full ci.sh.
🤖 Generated with Claude Code