forked from darktable-org/darktable
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pixelpipe cache respects internal histograms
For an overview about "how the pixelpipe cache works" see darktable-org#14130 There has been an issue related to some modules internally showing histograms (hist-module), the underlying reasons are 1. those histograms are updated **while** processing the module 2. if we develop an image in darkroom we often do **not** process the whole pixelpipe but take data from the pixelpipe cache thus the histogram updating as in (1) is not done. We have discussed basically two options until now 1. do some sort of pre-processing before executing the pipe 2. introduce some special widget updating code both seem to be pretty difficult and likely over-designed. This pr follows a different approach: 1. If we develop an image with one of the hist-modules **expanded** we accept some performance penalty and force the pipeline to be processed from the first expanded hist-module. As these modules are late in the pipe the penalty is pretty small. 2. A new mask `DT_REQUEST_EXPANDED` in `dt_dev_request_flags_t` takes care of this. The modules in question set this flag. 3. In `dt_dev_pixelpipe_t` we have a new gboolean `nocache`, this flag is checked in the pixelpipe and it's caching code. If **TRUE**, the requested cachelines are marked as invalid. (This is like we do for visualizing masks in some ways) 4. While processing each module in the **full** pixelpipe we check for a) the status of `DT_REQUEST_EXPANDED` b) the module being enabled & expanded and possibly unvalidate the current cacheline and set the pixelpipe `nocache` flag. Fixes darktable-org#11069 Likely Fixes darktable-org#11003
- Loading branch information
1 parent
cbe190f
commit f1c03ab
Showing
9 changed files
with
49 additions
and
27 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
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
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
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
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
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
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
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
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