fix(VR): disable broken HDR shader ISTemporalAA#2084
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No actionable suggestions for changed features. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/ShaderCache.cpp`:
- Around line 1646-1649: The current early return in
ResolveImageSpaceDescriptor() unconditionally skips custom VR handling for
imagespaceShader.name == "BSImagespaceShaderISTemporalAA" when
REL::Module::IsVR() is true, which breaks all VR TAA descriptor resolution;
change the condition so the early-out only occurs when the HDR-specific variant
is in effect (e.g., combine REL::Module::IsVR() && strcmp(imagespaceShader.name,
"BSImagespaceShaderISTemporalAA") == 0 with a check for the HDR feature state
such as globals::features::hdrDisplay.loaded), or move the bypass to the
HDR-specific call site, ensuring ISTemporalAA (and descriptors lookup) continues
to be resolved for other VR uses and ResolveImageSpaceDescriptor()/descriptors
retrieval still runs when HDR is not loaded.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 5360134e-6d16-4ed0-821a-13e36d79d0a0
📒 Files selected for processing (1)
src/ShaderCache.cpp
|
✅ A pre-release build is available for this PR: |
…haders#2084)" This reverts commit c9b8a8e.
Summary by CodeRabbit