test: match memory-trim checks to resized BC3 scratch uploads #806

Merged
monsterlag merged 1 commit from fix/bc3-resized-trim-check into main 2026-11-08 23:16:23 +00:00
monsterlag commented 2026-11-08 22:05:55 +00:00 (Migrated from github.com)

The BC3 upload paths now pass their resize mode to bc_scratch_layout, but test_mem_trim.py still counts the old zero-argument call. The source check therefore fails on the released v2.0.5 code on both CI platforms.

Check the actual ASTC upload and texture-copy functions separately. Each must return on scratch-allocation failure and pass its own texture's resize flag. The other memory-trim checks are preserved.

Validation: the strict runner passes on Windows and Linux. The unmodified v2.0.5 test reproduces the reported CI failure; removing either guard or replacing either resize argument with false is rejected by the updated check. No production code, native compiler or GPU is involved.

The BC3 upload paths now pass their resize mode to `bc_scratch_layout`, but `test_mem_trim.py` still counts the old zero-argument call. The source check therefore fails on the released v2.0.5 code on both CI platforms. Check the actual ASTC upload and texture-copy functions separately. Each must return on scratch-allocation failure and pass its own texture's resize flag. The other memory-trim checks are preserved. Validation: the strict runner passes on Windows and Linux. The unmodified v2.0.5 test reproduces the reported CI failure; removing either guard or replacing either resize argument with `false` is rejected by the updated check. No production code, native compiler or GPU is involved.
Commenting is not possible because the repository is archived.
No description provided.