Skip to content

RUSTICL radeonsi produces artifacts in blown out highlights in darktable-view with demosaicing set to 3xMarkesteijn+VNG #18427

Open
@kasav81

Description

@kasav81

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

When setting the demosaicing algorithm to 3x Markesteijn + VNG on an otherwise unedited image blown out highlight show artifacts when processed on GPU using RUSTICL with the radeonsi driver, no such artifacts appear when selecting the iris driver and the artifacts aren't there on the exported image and vanish once the center view is zoomed >50%.
My system has an i7-13000 with an iGPU and an AMD Radeon RX6600. Because of problems with the recommended rocm-opencl and intel-compute-runtime which led to crashes I switched entirely to RUSTICL for OpenCL in darktable.
The AMD card is set to process the center view and the iGPU to process the little preview / histogram. Exporting is mainly done via the AMD card. Exported images appear normal.
When other modules get involved the artifacts get worse, creating almost artistic abstract images, but still only in the center view and while zoomed less than 50%.
Admittedly not a big problem as all other demosaicing options appear to work flawlessly.

Steps to reproduce

  1. Set RUSTICL_ENABLE=radeonsi and enable RUSTICL in dt preferences + fast gpu to make sure everything gets processed on gpu
  2. Open Fujifilm RAW file with blown highlights
  3. Select demosaicing 3xMarkesteijn+VNG
  4. Artifact appear in center view, the little preview image in the left upper corner appears normal, artifacts disappear when zooming in over 50% and aren't visible in exported image
  5. With RUSTICL_ENABLE=iris everything takes considerably longer but there are no artifacts.

Expected behavior

Center image should be displayed without artifacts on lower zoom levels

Logfile | Screenshot | Screencast

Screenshot immediately after opening and selecting 3xMarkesteijn+VNG
Image

After enabling diffuse/sharpen
Image

Zoomed in
Image

exported image
Image

output of RUSTICL_ENABLE=radeonsi darktable -d common -d opencl
dt5.0.1.txt

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

darktable 5.0.1

What OS are you using?

Linux

What is the version of your OS?

Gentoo / Kernel 6.6.74-gentoo-dist (64-bit) / KDE Plasma 6.2.5, Frameworks 6.10.0 / X11

Describe your system

Darktable was compiled using a slightly modified ebuild to enable gmic-support and with all gentoo patches disabled

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

AMD RX6600 + intel iGPU, amdgpu with mesa 24.3.3

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions