test(vk): the texture-staging fixture defines logf_at and LogLevel, which the cut code now calls #195
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!195
Loading…
Reference in a new issue
No description provided.
Delete branch "d4nkn3ss/Longshot:fix/test-texture-staging-log-levels"
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?
Why
tests/test_texture_staging_publication.pyfails onmainon Windows sincee51e28e9(debug and trace log lines): its fixture no longer compiles, so the check that texture staging slices are published before the GPU reads them isn't running.What changed
tests/texture_staging_publication_test.cppgainsgpu/vk/vk_internal.h'sLogLeveland an emptylogf_at, beside itslogf.e51e28e9moved some ofvk_memory.cpp's lines tologf_at(log_debug, ...), and the fixture compiles those functions with its own stand-ins: without them,error: use of undeclared identifier 'log_debug'.Flags and settings
None
Measurements
main:
e51e28e9(2026-11-13)this PR: fix/test-texture-staging-log-levels @
a8dadc92Hardware: Windows 11, llvm-mingw clang 23 (the Longshot Builder's), Python 3.12
Scene: n/a (game-free)
Method:
python -I -B tests/run_all.py texture_staging_publicationon both sidesHow to reproduce: the command above, with clang++ on PATH
e51e28e9a8dadc92tests/test_texture_staging_publication.pyfixture.cpp:146:51: error: use of undeclared identifier 'log_debug'Testing
Tested: the row above on Windows 11.
Full suite:
python -I -B tests/run_all.pyon this branch @a8dadc92, Windows 11: 486 passed, 3 failed, 33 skipped:tests/test_check_third_party.py(#80),tests/test_display_pointer.py(#187) andtests/test_release.py(#119, #144, #145), all failing onmainthe same way.Not tested: Linux (not run here). The fixture's change is the same on every OS; why e51e28e9's Linux run didn't show this failure I don't know (its description doesn't list its skips).
Needs other testers: None
Screenshots
Nothing on screen
Risk and rollback
Test-only; reverting the commit is enough.
Issues
None
Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.tests/that reads changed source updated in this PR, not weakened.🤖 Generated with Claude Code
e51e28e9)Duplicate of #202 (dyst), the same two-line fixture fix for log_debug/logf_at. #202 was also run on Linux, so it's the more complete one: please take #202 and close this. (My fault: I opened this between room posts without claiming it there first.)
This duplicates #202, which makes the same change, so keep #202 and close this one.
All three PRs (#195, #202 and #215) add the same
LogLevelenum andlogf_atstub, and all matchgpu/vk/vk_internal.h:36-37exactly, so this code is correct too. 202 is the one to keep because it has the most thorough testing (Windows and Linux, plain and sanitized) and a description that names the call site correctly (staging()ingpu/vk/vk_texture.cpp).(One detail if this is kept anyway: the description says the
logf_at(log_debug, ...)lines are invk_memory.cpp. The call the check cuts is ingpu/vk/vk_texture.cpp, instaging().)View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.