chore: remove stale Vulkan compile-time feature flags#276
Draft
cursor[bot] wants to merge 1 commit into
Draft
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>
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 dead compile-time feature-flag branches in the Vulkan renderer where rollout is complete (
USE_VK_PBRalways on,USE_VBO_GRIDalways on,USE_TESS_NEEDS_*permanently disabled). Net −337 LOC; active rendering paths unchanged.Flags removed
USE_VK_PBR#elsepaths#define USE_VK_PBRis unconditional intr_local.h; non-PBR shader init/teardown was unreachable dead codeUSE_VBO_GRIDUSE_VBO; grid surfaces always use the VBO path — guards were no-opsUSE_TESS_NEEDS_NORMAL/USE_TESS_NEEDS_ST2tr_local.h; guarded blocks were compiled out; tessneedsNormal/needsST2plumbing removedVERTEXSIZE8 fallbackUSE_VK_PBRis onRuntime toggles preserved:
vk.pbrActive,r_pbr, etc.Files touched
renderers/vulkan/vk_shader_modules.c— drop legacy manual shader tablerenderers/vulkan/vk_shutdown.c— drop legacy module destroy loopsrenderers/vulkan/vk_vbo.c,tr_surface.c— unwrap grid VBO + tess guardsrenderers/vulkan/tr_shade.c,tr_animation.c,tr_main.c,tr_local.h— tess flag cleanupTest plan
./tests/scripts/test_vulkan_regression_source_guards.sh./scripts/compile_engine.sh vulkan core./scripts/smoke_test.sh ./build-vk-Release(CI)Behavioral parity checks
vk_bind_generated_shaders()(only live init path)RB_SurfaceGridEstimate/ VBO bakeVERTEXSIZElayoutvk.pbrActiveruntime checks unchanged (compile guards removed only)Not in scope (low confidence)
#ifdef USE_VK_PBRunwrap across remainingvk_*.c/tr_*.cr_allowSoftwareGL/r_glDriver(config compat)r_forwardPlus,r_renderMode,r_pbr, RTX toggles