Skip to content

d3d12_vulkan_device: the resolve-usage comment names TextureCreateInfo - #9328

Closed
TuroYT wants to merge 1 commit into
ProjectLeonida:mainfrom
TuroYT:runtime/vulkan-device-comment-name
Closed

TuroYT wants to merge 1 commit into
ProjectLeonida:mainfrom
TuroYT:runtime/vulkan-device-comment-name

Conversation

@TuroYT

@TuroYT TuroYT commented Nov 23, 2026 •

Copy link
Copy Markdown

Comment only, no behaviour change.

The comment above the colour-attachment multisample resolve check in runtime/shims/d3d12_vulkan_device.cpp (line 7509) cited texture_create_info(), which does not exist. The entity it refers to is the TextureCreateInfo struct (line 489).

Claim: #9235 (claiming: runtime/shims/d3d12_vulkan_device.cpp line 7509)

Checked:

  • git grep -n texture_create_info -- runtime returns nothing after the change; before it, only the comment line matched.
  • Only the comment text changed (one line, file line endings unchanged).
  • python -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp passes.

Not tested: the file is not compiled here (Windows/MSVC build). It is a comment only, so no GPU is needed.

AI-assisted (Claude Code).

@machinelearning791

Copy link
Copy Markdown

Tested efb9a7c on NVIDIA GeForce RTX 4080 Laptop GPU, NVIDIA 595.79 (Vulkan 1.4.329), Windows 11 build 26200: pass

  • Applied on main at 5d74c272 (git cherry-pick -n efb9a7c): applies cleanly; the file differs from main only in this comment line.
  • Built runtime/ with MSVC 19.50.35717 (VS 2026 Build Tools), RelWithDebInfo, Vulkan headers from -DLEONIDA_VULKAN_HEADERS_FETCH=ON: builds, no new warnings.
  • ctest --test-dir runtime/build -C RelWithDebInfo: 237/239, the same as main at the same commit on this machine. The two failures are the known ones on main (d3d12_vulkan_device line 6574 tiles == 1; d3d12_depth_resolve refused cases "destination changed") and are unrelated to this change.
  • Code read: TextureCreateInfo (line 489) sets TRANSFER_SRC | TRANSFER_DST, COLOR_ATTACHMENT with ALLOW_RENDER_TARGET, SAMPLED unless DENY_SHADER_RESOURCE, and MUTABLE_FORMAT for typeless formats. These are the usages and flags the query at lines 7512-7514 passes, so the new comment is accurate. texture_create_info no longer appears anywhere under runtime/.
  • python -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp: clean. No game files used.

@sgonzalez-glitch

Copy link
Copy Markdown

Tested efb9a7ced (as part of #9523, #9499, #9567, #9566 and #9328 merged together onto main 5d74c2723) on NVIDIA GeForce RTX 2080, driver 621.24 (32.0.16.2124), Windows 11, MSVC 19.44 RelWithDebInfo: pass.

AI-assisted: yes

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.

4 participants