Skip to content

Vulkan: remove dead USE_UPLOAD_QUEUE compile-time branches#52

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-5697
Draft

Vulkan: remove dead USE_UPLOAD_QUEUE compile-time branches#52
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-5697

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 8, 2026

Summary

Removes the unused USE_UPLOAD_QUEUE compile-time feature gate. The macro was never defined anywhere in the build, so only the #else (synchronous staging + per-upload command buffer) path ever ran.

Flags removed

  • USE_UPLOAD_QUEUE (compile-time only; not a cvar)

Why it is safe to delete

  • Grep confirms USE_UPLOAD_QUEUE is not defined in CMake, headers, or compile definitions, so the “upload queue” path was unreachable dead code.
  • The remaining code matches the previously active branch: allocate/copy to staging, record copy with vk_begin_command_buffer / vk_end_command_buffer, single-semaphore frame submit.

Behavioral parity checks

  • ./scripts/compile_engine.sh vulkan (Release) — success
  • ctest in build-vk-Release — all 17 tests passed (smoke, renderer regression, unit tests)
Open in Web View Automation 

The macro was never defined in-tree, so only the #else paths ran.
Drop the unused staging-queue helpers and simplify upload/submit code
to match the active synchronous staging path.

Co-authored-by: Tim Fox <timfox@outlook.com>
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