Vulkan: remove dead USE_UPLOAD_QUEUE; simplify reversed-depth branches#148
Merged
Vulkan: remove dead USE_UPLOAD_QUEUE; simplify reversed-depth branches#148
Conversation
USE_UPLOAD_QUEUE was never defined in CMake or headers; the guarded code referenced non-existent vk fields and could not compile if enabled. Keep the single-queue submit path that is actually built. Co-authored-by: Tim Fox <timfox@outlook.com>
USE_REVERSED_DEPTH is unconditionally defined in vk.h for this renderer; remove the alternate depth/compare/clear paths so the live reversed-depth behavior is explicit. OpenGL path in tr_main.c is unchanged. Co-authored-by: Tim Fox <timfox@outlook.com>
Author
There was a problem hiding this comment.
Security review completed for PR #148.
Outcome: no high-confidence medium, high, or critical vulnerabilities found in the added or modified code. The diff removes dead Vulkan upload-queue compile branches and non-reversed-depth code paths; I did not find a new attacker-controlled path to injection, auth/permission bypass, secret exposure, traversal/SSRF/XSS, unsafe deserialization, or supply-chain risk.
Prior automation threads: none found to revalidate.
Sent by Cursor Automation: Find vulnerabilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Flags / compile toggles removed
USE_UPLOAD_QUEUE(implicit dead feature)#ifdefblocks could only ever compile the#elsepath. The#ifdefbranch also referenced symbols (vk.image_uploaded,vk.rendering_finished,vk.cmd->rendering_finished2,vk.staging_command_buffer) that do not exist onVk_Instance/vk_tess_t, so enabling the macro would not have been a viable configuration.Non-reversed branches behind
USE_REVERSED_DEPTHUSE_REVERSED_DEPTHis unconditionally#defined insrc/renderers/vulkan/vk.hfor the Vulkan renderer. The removed#elsepaths were never selected in any supported build.USE_REVERSED_DEPTHremains defined for GLSL (compile_shaders.shstill passes-DUSE_REVERSED_DEPTHfor the listed shaders).Behavioral parity
#ifdef USE_REVERSED_DEPTH/#ifndef USE_REVERSED_DEPTHbranches that were actually in use../scripts/compile_engine.sh vulkan(Release) succeeded.ctestinbuild-vk-Release— all 19 tests passed (smoke, renderer regression, unit tests).Notes
src/renderers/opengl/tr_main.c) is unchanged; Vulkan-onlytr_main.cedits are under#ifdef USE_VULKANas before.