Skip to content

Port upstream Linux playability wave (Wine copy-back, indirect work, input) - #10

Merged
Personed merged 7 commits into
mainfrom
devin/1795562933-linux-playability-wave
Nov 25, 2026
Merged

Personed merged 7 commits into
mainfrom
devin/1795562933-linux-playability-wave

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

First Linux playability wave selected from currently open upstream PRs. The directly relevant Linux base (#994/#1011/#1218) and Wine compiler/test fixes (#1279/#1266) were already present in this fork, so this PR ports the next high-impact pieces:

  • #1831: write_mapped falls back to the kernel read path for write-watched pages Wine refuses to write, so shader copy-back reaches title memory instead of silently missing bytes.
  • #1722: pipeline-library loads run outside the global store/serialize lock because vkd3d-proton treats a load as a full compile. Unlike the upstream patch, same-name loads are explicitly serialized (LOADS), matching D3D12's thread-safety contract while different pipelines load in parallel.
  • #1635: indirect calls whose host pipeline is not ready are dropped before refreshing and clamping argument records, avoiding a copy plus GPU dispatch for records nothing reads.
  • #1749: DispatchMeshX with group counts in GPU memory now runs through one-record indirect mesh execution instead of being dropped.
  • #1819: translated loops stop after 2^14 iterations by default rather than 2^20, reducing the chance that a bad data-dependent loop hangs or resets the GPU/desktop; VICTORY_SHADER_LOOP_LIMIT still overrides it.
  • #1505 + #1728: pipeline workers no longer run below the title's priority (where busy world threads starved them), and VICTORY_PIPELINE_WORKERS=1..64 can tune the worker count on many-core hosts.
  • #1430: idle/virtual XInput pads no longer disable the keyboard stand-in pad. A pad takes over only after input outside XInput deadzones; fallback keys regain control once host pads are idle. This is especially relevant under Proton/Steam Input, where zero-reporting virtual devices may occupy slots.

Upstream triage context: #1849's free-memory guard deadlock appears already avoided by the fork's current watch design (guard accepts only MEM_MAPPED views); #1799 and #1500 are larger/conflicting world-rendering candidates for a later wave; #1157/#1529/#1786 are the next input candidates.

Validation on this Linux VM:

  • cargo fmt --all -- --check
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check --locked --workspace --all-targets --target x86_64-pc-windows-msvc
  • default-features Windows-target clippy matrix matching windows-target-check
  • cargo test --locked -p victory-shader loop_limit
  • cargo xtask policy

Not run with the title or a real GPU here.

Link to Devin session: https://app.devin.ai/sessions/75bbf6b4192940fea34014b13a016bee
Open in Devin Desktop: https://app.devin.ai/desktop/session/75bbf6b4192940fea34014b13a016bee?variant=devin
Requested by: @Personed

Personed and others added 6 commits November 24, 2026 23:32
Port upstream #1831: when WriteProcessMemory/NtWriteVirtualMemory refuses an untouched MEM_WRITE_WATCH page under Wine, use the kernel read path into that destination so copy-back still lands.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port the Wine part of upstream #1722. vkd3d-proton treats a library load as a full compile, so holding the global library lock serialised all workers. Loads of different names can now overlap; same-name loads remain serialised as D3D12 requires.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream #1635: a call whose host pipeline is not ready cannot run, so do not refresh and clamp records that nothing will read.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream #1749: DispatchMeshX with group counts in GPU memory now uses the host indirect mesh path instead of being dropped.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream #1819. The previous 2^20 limit could outlast a driver reset; 2^14 bounds runaway loops to milliseconds per wave while VICTORY_SHADER_LOOP_LIMIT remains an override.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream #1430: virtual or untouched controllers no longer disable keyboard controls; real input outside the XInput deadzones takes over, and fallback keys regain control once host pads are idle.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Port upstream #1505 and #1728: workers no longer run below the title's priority, where busy world threads starved them, and VICTORY_PIPELINE_WORKERS can raise the worker count on many-core Linux/Windows hosts.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@Personed
Personed merged commit 9ed5276 into main Nov 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant