Fix: Cycles denoise fails with multi tile render and Use GPU off
This commit is contained in:
parent
f98468c988
commit
1e1a8d5c8f
@ -1002,6 +1002,9 @@ void PathTrace::process_full_buffer_from_disk(string_view filename)
|
||||
if (denoise_params.use) {
|
||||
progress_set_status(layer_view_name, "Denoising");
|
||||
|
||||
/* If GPU should be used is not based on file metadata. */
|
||||
denoise_params.use_gpu = render_scheduler_.is_denoiser_gpu_used();
|
||||
|
||||
/* Re-use the denoiser as much as possible, avoiding possible device re-initialization.
|
||||
*
|
||||
* It will not conflict with the regular rendering as:
|
||||
|
@ -46,6 +46,11 @@ void RenderScheduler::set_denoiser_params(const DenoiseParams ¶ms)
|
||||
denoiser_params_ = params;
|
||||
}
|
||||
|
||||
bool RenderScheduler::is_denoiser_gpu_used() const
|
||||
{
|
||||
return denoiser_params_.use_gpu;
|
||||
}
|
||||
|
||||
void RenderScheduler::set_limit_samples_per_update(const int limit_samples)
|
||||
{
|
||||
limit_samples_per_update_ = limit_samples;
|
||||
|
@ -99,8 +99,9 @@ class RenderScheduler {
|
||||
bool is_background() const;
|
||||
|
||||
void set_denoiser_params(const DenoiseParams ¶ms);
|
||||
void set_adaptive_sampling(const AdaptiveSampling &adaptive_sampling);
|
||||
bool is_denoiser_gpu_used() const;
|
||||
|
||||
void set_adaptive_sampling(const AdaptiveSampling &adaptive_sampling);
|
||||
bool is_adaptive_sampling_used() const;
|
||||
|
||||
/* Start sample for path tracing.
|
||||
|
Loading…
Reference in New Issue
Block a user