-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed in #18384 we had inconsistent output of this module, darkroom canvas looks certainly different from what is exported even if HQ darkroom rendering is enabled. The reason for this, until now we calculate ambient light (AL) and distance_max (DM) from data in the preview pixelpipe, as that is downscaled those data are just different from what we use in exports and expected in darkroom canvas or second window. This PR redesigns the calculation of AL and DM. We use a hash derived from upstream modules and dehaze parameters and check that vs a hash we keep in gui data. If we are in darkroom fullpipe and the hashes are different, we - enforce re-running the pipe in HQ mode, - calculate AL and DM and keep them in gui data - restart the pipe again as we left it before the HQ run Now we have hash validated AL and DM available and can use them. This slows down full pipe processing if any upstream or haze parameters changed due to the re-run but afterwards it is as fast as before. While being here adding an allocation check for opencl path.
- Loading branch information
1 parent
267e6ad
commit 7e1c106
Showing
1 changed file
with
119 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters