Skip to content

Commit

Permalink
Pixelpipe cache: handle modules distorting stuff in global hash
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Dec 3, 2023
1 parent 27e8b0b commit 0292865
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/develop/pixelpipe_hb.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,19 @@ void dt_pixelpipe_get_global_hash(dt_dev_pixelpipe_t *pipe, dt_develop_t *dev)
}
hash = dt_hash(hash, (const char *)&piece->module->request_histogram, sizeof(dt_dev_request_flags_t));
}

if(pipe->type & DT_DEV_PIXELPIPE_FULL)
{
// Full-preview-centric tweaks : mask display
hash = dt_hash(hash, (const char *)&piece->module->request_mask_display, sizeof(int));
hash = dt_hash(hash, (const char *)&piece->module->suppress_mask, sizeof(uint32_t));

if(dev->gui_module && dev->gui_module != piece->module)
{
// Crop and perspective need a full ROI to set-up bounds in GUI, but only temporarily
const int distort_tags = dev->gui_module->operation_tags_filter() & piece->module->operation_tags();
hash = dt_hash(hash, (const char *)&distort_tags, sizeof(int));
}
}

/*
Expand Down

0 comments on commit 0292865

Please sign in to comment.