Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various demosaicer issues with amd drivers #10841

Merged
merged 6 commits into from
Jan 11, 2022

Conversation

jenshannoschwalm
Copy link
Collaborator

@jenshannoschwalm jenshannoschwalm commented Jan 9, 2022

As reported by @piratenpanda in #10778

  • crashes in modules later in the pipeline or
  • visible artefacts in darkroom

seemed to be related to NaNs fired up the pipeline. We investigated this further and suspected driver issues but could isolate the underlying problem. Especially the border handling algorithms for ppg and rcd seemed to be a problem (i took the border code for rcd from old ppg code). As we know from other issues ( #9235 ) amd drivers are more picky about this.

I checked places where writing output was not absolutely safe to have fully correct data and ensured writing at least 0 instead of NaN via fmax(0.0f, val)

likely
Fixes #10778
Fixes #10082

@TurboGit TurboGit added this to the 3.8.1 milestone Jan 9, 2022
@TurboGit TurboGit added bugfix pull request fixing a bug scope: image processing correcting pixels priority: high core features are broken and not usable at all, software crashes labels Jan 9, 2022
@TurboGit TurboGit merged commit cd7286e into darktable-org:master Jan 11, 2022
TurboGit pushed a commit that referenced this pull request Jan 11, 2022
* rcd fixes
* ppg fixes
* rest of fixes
* Safety for the border region for rcd opencl demosaicer
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

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

All good to me. Merged into master and darktable-3.8.x branch.

jpellegrini pushed a commit to jpellegrini/darktable that referenced this pull request Jan 14, 2022
* rcd fixes
* ppg fixes
* rest of fixes
* Safety for the border region for rcd opencl demosaicer
@jenshannoschwalm jenshannoschwalm deleted the fix_amd_demosaic branch January 15, 2022 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: image processing correcting pixels
Projects
None yet
2 participants