OLD-5718: d3d12_vulkan_device.cpp, four comments that still describe missing work #380

Manually merged
github merged 1 commit from gh-pr/380/head into gh-pr/380/base 2026-11-26 08:56:49 +00:00
Owner

@⁠lines9686-rgb on GitHub · 2026-11-24 04:11 UTC · original
lines9686-rgb:runtime-stale-comments → main · +8 −7 · 1 files · 1 commits · merged 2026-11-24 14:54 UTC

Claimed in the coordination issue as: OLD-5718 (carried over from the original repository, same author)

What and why

Four comments in runtime/shims/d3d12_vulkan_device.cpp still describe work that has since landed: pipeline states are compute and graphics, timestamps come from the device's timestampPeriod (not one shared VkQueue), R8/R16 SNORM vertex formats have an input-layout mapping, and typed buffer UAVs are written by the layer (write_buffer_uav). Comments only.

Tested

Comments only; each statement checked against this main.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (scripts/check_no_game_data.py over every changed file: clean).
  • A new translator rule is in the contract table of docs/design.md: n/a

🤖 Generated with Claude Code

**@⁠lines9686-rgb** on GitHub · 2026-11-24 04:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/380) `lines9686-rgb:runtime-stale-comments` → `main` · +8 −7 · 1 files · 1 commits · merged 2026-11-24 14:54 UTC Claimed in the coordination issue as: `OLD-5718` (carried over from the original repository, same author) ### What and why Four comments in `runtime/shims/d3d12_vulkan_device.cpp` still describe work that has since landed: pipeline states are compute and graphics, timestamps come from the device's `timestampPeriod` (not one shared `VkQueue`), R8/R16 SNORM vertex formats have an input-layout mapping, and typed buffer UAVs are written by the layer (`write_buffer_uav`). Comments only. ### Tested Comments only; each statement checked against this `main`. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (`scripts/check_no_game_data.py` over every changed file: clean). - [x] A new translator rule is in the contract table of `docs/design.md`: n/a 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- PipelineState is not compute-only: create_graphics builds graphics PSOs too.
- The R8/R16 SNORM and SINT input-layout formats are mapped (352b9af1), so the format-support note drops its "no mapping yet".
- Buffer UAVs exist (write_buffer_uav writes a typed V#); what the layer does not create is a VkBufferView.
- Timestamps are not read from "the one VkQueue every D3D12 queue submits to": the period is enabled from the graphics family's timestampValidBits.

Comments only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:56:43 +00:00
github manually merged commit 7176ce89cb into gh-pr/380/base 2026-11-26 08:56:49 +00:00
Author
Owner

@⁠Oliwettoo on GitHub · 2026-11-24 10:34 UTC · original

Checked each corrected comment against the file: create_graphics exists beside create_compute, vertex_format does map R8/R16 SNORM/SINT now, timestamps come from the graphics family's timestampValidBits, and buffer UAVs go through write_buffer_uav. Comment-only, all four now match the code. Ship. AI-assisted review.

**@⁠Oliwettoo** on GitHub · 2026-11-24 10:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/380#issuecomment-7128955835) Checked each corrected comment against the file: `create_graphics` exists beside `create_compute`, `vertex_format` does map `R8/R16 SNORM/SINT` now, timestamps come from the graphics family's `timestampValidBits`, and buffer UAVs go through `write_buffer_uav`. Comment-only, all four now match the code. Ship. AI-assisted review.
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 14:54 UTC · original

Merging.

Why merged: Comment-only fix in d3d12_vulkan_device.cpp: four stale comments now describe what the code actually does. Oliwettoo checked each one against the code ("Ship").

Why it's good: No code change: the diff touches only comments.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 47c651174, where the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed with this PR in. git merge-tree against current main 8f05e09e2: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 14:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/380#issuecomment-7135134561) Merging. **Why merged:** Comment-only fix in d3d12_vulkan_device.cpp: four stale comments now describe what the code actually does. Oliwettoo checked each one against the code ("Ship"). **Why it's good:** No code change: the diff touches only comments. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 47c651174, where the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed with this PR in. git merge-tree against current main 8f05e09e2: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.