Feature-flag cleanup: remove stale Vulkan compile-time flags#283
Draft
cursor[bot] wants to merge 3 commits into
Draft
Feature-flag cleanup: remove stale Vulkan compile-time flags#283cursor[bot] wants to merge 3 commits into
cursor[bot] wants to merge 3 commits into
Conversation
…_VBO_GRID, USE_TESS_NEEDS) - Delete dead non-PBR shader init and teardown paths (USE_VK_PBR always on) - Unwrap USE_VBO_GRID grid-VBO paths; drop orphaned macro - Remove disabled USE_TESS_NEEDS_NORMAL/ST2 guards and tess plumbing - Pin VERTEXSIZE to 11 (PBR vertex layout) Co-authored-by: Tim Fox <timfox@outlook.com>
Co-authored-by: Tim Fox <timfox@outlook.com>
Remove non-PBR fallback code paths that cannot compile: USE_VK_PBR is unconditionally defined in tr_local.h. Keeps PBR vertex bindings (10), descriptor set count (20), shader module tables, pipeline factory switch, and material paint vertex color offsets (VERTEXSIZE 11 layout). Co-authored-by: Tim Fox <timfox@outlook.com>
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.
Summary
Removes stale compile-time feature flags and dead non-PBR fallback branches in the Vulkan renderer.
USE_VK_PBRis unconditionally defined intr_local.h; the removed#elsepaths could not be built and only added maintenance burden.Branch:
cursor/feature-flag-cleanup-e683→mainFlags removed / unwrapped
#elseinvk_shader_modules.c,vk_shutdown.cUSE_VK_PBRUSE_VBOis on; grid surfaces always use VBO path#elseVK_PBR_BRDFLUT/VK_CUBEMAPdefines#elseinvk_draw_state.c,vk_create_pipeline.c,vk.h,vk_attachments.c,vk_forward_plus.c,tr_material_paint.cvk_pbr_ibl_validate.ccompile guardvk.pbrActive/r_pbrgating preservedBehavioral parity
#elsebranches and guards removed.r_pbr,vk.pbrActive, Forward+, deferred, material blend, etc.Test plan
./tests/scripts/test_vulkan_regression_source_guards.sh./scripts/compile_engine.sh vulkan core./scripts/smoke_test.sh ./build-vk-Release(headless VM; not run this iteration)Remaining candidates (not changed — low confidence)
#ifdef USE_VK_PBRguards intr_local.h/tr_shader.c(struct fields; no#else)r_allowSoftwareGL,r_glDriverr_forwardPlus,r_renderMode,SKIP_IDPAK_CHECK