Bug fixes from a repository-wide audit (GPU backend, shader translator, HLE, loader) #2
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay--gone-20261126!2
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2/head"
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?
@TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
TaynanGT:historico/victory-windows-2-head→historico/victory-windows-2-base· +760 −111 · 26 files · 12 commits · merged 2026-11-25 08:47 UTCSummary
Follow-up to #1: fixes for bugs found while auditing the whole workspace, then work on frame time and rendering measured on an RTX 4090.
GPU backend
VICTORY_WAVE_LOCAL,VICTORY_STRICT_JOINSorVICTORY_MESH_OUTPUT_STRICT.Shader translator
s_min_*/s_max_*set SCC to whether the first operand is the result, ands_lshlN_add_u32to the carry of the wide sum; all had it as "result is not zero".image_sample_don a cube scaled the level by log2(e): the host's logarithm is already to base 2.image_sample_d*with A16 was decoded with packed 16-bit gradients; gradients are 16-bit only in the_g16opcodes.ds_swizzle_b32's rotate and FFT modes were lowered as quad picks; they are refused now.HLE runtime
XMemMapPhysicalPagesfailed for a range that crosses the placeholders earlier views left behind; they are joined before the range is mapped.GetModuleFileNameAgave a title image's path in UTF-8 instead of the ANSI code page the title's narrow file calls are decoded with (a folder with a letter outside ASCII).Loader and tools
clzeroloop zeroed nothing for blocks of 2 GiB or more, nor the one line the loop zeroes when its end is not past its start.victory censuscounted a function once per import hint.Frame time and rendering (RTX 4090)
VICTORY_WIDE_REFRESH) counted their time twice in the frame line; counted once now.VICTORY_HELPER_PRIORITY=0keeps them normal). A PIX timing capture showed them on the frame's path at the normal priority the title leaves its workers at: with all 32 cores busy, the settling thread was ready but not running for 542 ms of a 580 ms window while the card sat idle for 625 ms. The title's submitting thread already runs at 15.CreateComputePipelineStatereturns E_INVALIDARG). With the wave-wide form allowed (VICTORY_WAVE_WIDE_ONLY, which the base branch added meanwhile), five of them become 32-lane pipelines the card takes:2cc4c197ee29e291,369cbe906ea72764,5dc3b25986622949,6f225b641c5b0708,926c46bab3b86bd6. The other three have groups of several console waves (128, 256, 1024 threads), where that form does not apply. This PR adds a test of the switch's scope and letsvictory translatehonourVICTORY_WAVE_WIDE_ONLY.Verification
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, with and without--all-features, passes (cross-checked from Linux).cargo test -p victory-shader --libpasses on Linux (210 tests).victory translate --validate --pipelinesover the saved containers of the seven refused shaders, withVICTORY_HOST_MAX_WAVE=32: 0 pipelines before, 5 with the wave-wide form allowed for those five.Not changed (reported, needs a decision or a title to confirm)
v_cmp_u/o_f32are emitted asfcmp uno/ord, which the code's own comment says some host drivers fold away under fast-math.XAsyncCancelcompletes the call itself withE_ABORTinstead of leaving completion to the provider;XTaskQueueTerminatedrains tasks of other queues that share a port.GetDescof descriptor heaps and queues does not return the hidden result pointer.clwbin place, which races with a second thread faulting on the same instruction (only on CPUs without CLWB).🤖 Generated with Claude Code
https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
Origem TaynanGT/victory-windows#2, aberto por TaynanGT em 11/25/2026 05:22:26.
Integração original em 11/25/2026 07:46:53, commit 1c13f4c.
@TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
Comentário original de
chatgpt-codex-connector[bot]em 11/25/2026 07:47:04. Ver original.@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 08:47 UTC · original
To use Codex here, create an environment for this repo.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 08:47 UTC · original · edited 2026-11-25 08:49 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
bb992f0bb992f0ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.