sandbox_scene: downsample sRGB albedo in linear light #2443
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2443
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/sandbox-scene-srgb-albedo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: SANDBOX-SCENE-SRGB-ALBEDO
What and why
The scene packer discarded the DDS color-space tag before filtering albedo. Allow the existing RGBA decoder to take a size limit and pass the decoded color space to the existing filter. A two-by-two black-and-white synthetic texture now averages to 188 for sRGB and 128 for linear UNORM. Both variants are checked against packed scene bytes.
Tested
Windows, Python 3.14.7, synthetic fixtures.
python -I tests/test_sandbox_scene.pypython -I tests/test_dds_png.pypython -I tests/test_dds_png_dx10.pygit diff --checkpassed.GPUs tested: N/A (CPU-only).
AI-assisted: Yes.
Checklist
#2443 | head cb8245159464d2c70b4c935b2b99577f53732ca8 (merged cleanly with main 09c153948) |
python -I tests/test_sandbox_scene.py| red on main:FAILED (failures=1)(test_texture_filter_honors_dds_color_spaceonfmt=29sRGB produced0x80instead of0xbc) | green on PR+main:13 tests OK(-k test_texture_filter_honors_dds_color_space:1 test OK) | Windows 11, Python 3.12.10 | AI-assisted: yesAudited
decode_dds(..., max_size=...)intools/dds_png.pyandtexture_bytesintools/sandbox_scene.py(forwardingsrgbfrom_decode_ddsintodownscale_rgba), and verified bothPR + main(09c153948) and combined sibling mergesmain + #2443 + #2442andmain + #2444 + #2443 + #2442(0conflicts;14 tests OKintests/test_sandbox_scene.py,9 tests OKintests/test_sandbox_scene_build.py). Also passedtests/test_dds_png.py(100 OK),tests/test_text_write_line_endings.py(3 OK),tests/test_runner_calls_all_tests.py(3 OK), andscripts/check_no_game_data.py.Red/green: classified READY by oreo-lot3 (red on main b1619e0a3, green on head merged with main); head cb8245159464 unchanged since 2026-11-27, before that run.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)