Skip to content

possible naive RCAS negative output fix#116

Open
KirillAlekseeenko wants to merge 4 commits intoGPUOpen-LibrariesAndSDKs:mainfrom
KirillAlekseeenko:RCAS-negative-output-fix
Open

possible naive RCAS negative output fix#116
KirillAlekseeenko wants to merge 4 commits intoGPUOpen-LibrariesAndSDKs:mainfrom
KirillAlekseeenko:RCAS-negative-output-fix

Conversation

@KirillAlekseeenko
Copy link
Copy Markdown

@KirillAlekseeenko KirillAlekseeenko commented Dec 6, 2024

Additional multiplier in this fix is needed to account for the difference between e (central sample) and minRingSample if (e << minRingSample) here:
// 0 == (w*(b+d+f+h)+e)/(4*w+1) -> w = -e/(b+d+f+h)

due to min max usage instead of individual taps we have:
e/(b+d+f+h) > e/(4maxRing) which is safe
But
e/(4
maxRing) < minRing / (4*maxRing) in (e << minRingSample) case
So we risk getting such w that result output would be < 0

@kurbeco kurbeco force-pushed the main branch 3 times, most recently from beeb9fd to c6efa6b Compare August 20, 2025 16:33
@mirh
Copy link
Copy Markdown

mirh commented Jan 30, 2026

I believe this was included in FXSDK 2.0.

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