Skip to content

GS/HW: Several barrier fixes, hw/sw blend, date and shuffles.#14349

Merged
lightningterror merged 5 commits intomasterfrom
gs_hw_barrier_fixes
Apr 26, 2026
Merged

GS/HW: Several barrier fixes, hw/sw blend, date and shuffles.#14349
lightningterror merged 5 commits intomasterfrom
gs_hw_barrier_fixes

Conversation

@lightningterror
Copy link
Copy Markdown
Contributor

@lightningterror lightningterror commented Apr 23, 2026

Description of Changes

GS/HW: Several barrier fixes to sw blend and barrier date.

  • Accumulation blend: Require 32 bit RT is only when texture barriers/multidraw fb copies are on/supported.

  • Barrier DATE: Always use barrier date if texture barrier/multidraw fb copies are supported.

  • Check if texture barriers/multidraw fb copies are supported before enabling barrier date for AA1.

GS/HW: Allow Date barrier when texture barriers/multidraw fb copies are disabled.
We still use copies for single barriers.

GS/HW: Clean up date stencil temp ds texture creation.
Add barrier fallback method.

GS/HW: Exclude shuffles for dst no rgb blend and no rt check.

GS/HW: Match TEXA behavior on shuffles between renderers.

Merge #14326 first before merging this one.

Rationale behind Changes

Bugfixes, regression fixes, optimizations.

Suggested Testing Steps

Test the dump below with texture barriers disabled on max blend:
Scarface Shadow.gs.xz.zip
Test other games that do a lot of shuffles.
Test games with and without texture barriers disabled such as persona 3/4 shadows, gt4 shadows, Sly 2, Amagami.
Test The Godfather dump and see if it's fixed on dx11/12:
The Godfather_SLUS-21385_20250529231536.gs.xz.zip
Test dumps from #11334

Did you use AI to help find, test, or implement this issue or feature?

No.

@lightningterror lightningterror added this to the Release 2.8 milestone Apr 23, 2026
@lightningterror lightningterror force-pushed the gs_hw_barrier_fixes branch 2 times, most recently from c536f70 to ca83ff0 Compare April 24, 2026 16:05
@lightningterror lightningterror changed the title GS/HW: Several barrier fixes to sw blend and date. GS/HW: Several barrier fixes to sw blend, date and shuffles. Apr 24, 2026
@lightningterror lightningterror changed the title GS/HW: Several barrier fixes to sw blend, date and shuffles. GS/HW: Several barrier fixes, hw/sw blend, date and shuffles. Apr 24, 2026
- Accumulation blend: Require 32 bit RT is only when texture barriers/multidraw fb copies are on/supported.

- Barrier DATE:
Always use barrier date if texture barrier/multidraw fb copies are supported.
Check if texture barriers/multidraw fb copies are supported before enabling barrier date for AA1.
@lightningterror
Copy link
Copy Markdown
Contributor Author

lightningterror commented Apr 26, 2026

Dump run clear on dx12, smoke tested affected dumps with and without texture barriers enabled on all renderers. Merging.

@lightningterror lightningterror merged commit f7ef43b into master Apr 26, 2026
25 checks passed
@lightningterror lightningterror deleted the gs_hw_barrier_fixes branch April 26, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant