Skip to content

fix(VR): disable broken HDR shader ISTemporalAA#2084

Merged
alandtse merged 1 commit into
community-shaders:devfrom
alandtse:ISTemporalAA_VR
Apr 10, 2026
Merged

fix(VR): disable broken HDR shader ISTemporalAA#2084
alandtse merged 1 commit into
community-shaders:devfrom
alandtse:ISTemporalAA_VR

Conversation

@alandtse
Copy link
Copy Markdown
Collaborator

@alandtse alandtse commented Apr 10, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Improved temporal anti-aliasing shader resolution on non-VR builds.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 10, 2026

📝 Walkthrough

Walkthrough

The GetImagespaceShaderDescriptor function in ShaderCache.cpp now includes platform-specific handling for the temporal anti-aliasing imagespace shader, short-circuiting resolution on non-VR builds by directly querying the ImageSpaceManager instead of using the descriptor map.

Changes

Cohort / File(s) Summary
Imagespace Shader Descriptor Resolution
src/ShaderCache.cpp
Added conditional logic to handle "BSImagespaceShaderISTemporalAA" resolution on non-VR builds by retrieving the descriptor directly from ImageSpaceManager::GetCurrentIndex(ISTemporalAA). Removed the corresponding unconditional map entry for this shader name.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • jiayev
  • doodlum

Poem

🐰 A shader for a world less warped by glass,
Temporal AA now knows where it stands,
On solid ground, not VR's swaying dance,
Swift short-circuits let the pixels prance—
Reality refreshed with whisker-sniff finesse! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: disabling the ISTemporalAA shader for non-VR builds where it's broken, directly reflecting the code modification.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

No actionable suggestions for changed features.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6e4cd11 and 8076d87.

📒 Files selected for processing (1)
  • src/ShaderCache.cpp

Comment thread src/ShaderCache.cpp
@github-actions
Copy link
Copy Markdown

✅ A pre-release build is available for this PR:
Download

@alandtse alandtse merged commit c9b8a8e into community-shaders:dev Apr 10, 2026
17 checks passed
@alandtse alandtse deleted the ISTemporalAA_VR branch April 10, 2026 07:56
alandtse added a commit to alandtse/open-shaders that referenced this pull request Apr 11, 2026
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.

2 participants