Skip to content

make_game: ignore partial vulkaninfo output after a failed probe (DRAFT-332) - #937

Open
fin-github wants to merge 1 commit into
ProjectLeonida:mainfrom
fin-github:draft/332
Open

fin-github wants to merge 1 commit into
ProjectLeonida:mainfrom
fin-github:draft/332

Conversation

@fin-github

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: DRAFT-332 (#14 (comment))

Supersedes draft #332, carried over from the original repository. This is the same commit rebased onto current main, with the original author (AGInformatique81) kept and git cherry-pick -x recording where it came from. The change and its explanation are theirs; see #332 for the original description.

Tested

  • python -I tests/test_make_game_wave64.py: OK
  • python -I scripts/check_no_game_data.py on the changed files: clean.

Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.

AI-assisted (Claude Code): rebasing, conflict resolution and test runs.

@KernelSmoker KernelSmoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 5028c0c17277f62a9056204bcbd5097b029b6e00. wave64_settings(auto) now trusts vulkaninfo output only when the probe exits successfully; partial output from a failed probe falls back to conservative emulation. The new regression exercises that failure case and preserves the successful-probe paths. python3 -I tests/test_make_game_wave64.py -v: 39/39 passed; Python compile and diff checks passed. Synthetic probes only; no GPU/game data used.

@wavehs

wavehs commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Same change as #736 (abnalstlll-byte, 2026-11-24 13:10, earlier), and both diffs now conflict with main f107ae044: wave64_settings() moved to make_game.py:1932 and max_subgroup_decider() returns size, decider, left_out, so the hunk no longer matches. Both PRs also claim to replace draft #332.

The defect is still real on current main: mocking vulkaninfo with returncode=1 and the partial 64-wide output real_format(("First adapter", 64, [])) makes wave64_settings("auto") return (False, True) instead of (True, True).

Recommendation: rebase #736 (earlier, identical content) with if r.returncode == 0: around size, decider, left_out = max_subgroup_decider(r.stdout), and close this one; there is no content difference to preserve. Details are in the #736 comment.

AI-assisted (review/verification only).

@wavehs

wavehs commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Correction: the canonical carrier for the vulkaninfo fix is now #2208, which consolidates the former #2217 (closed) with the crash-report and WINE changes. This PR and #736 are stale duplicates of that part; closing both once #2208 lands is the simplest path.

#2208 also needs the current-main adaptation (size, decider, left_out = max_subgroup_decider(r.stdout) behind if r.returncode == 0:); the live (False, True) reproduction from my previous comment is unchanged on 2d43417d4.

AI-assisted (review only).

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants