From af54bbd61c769c69891c9b39df19eb3cad9dafe2 Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Wed, 26 Feb 2020 16:30:42 +0100 Subject: Cycles: Rework tile scheduling for denoising This fixes denoising being delayed until after all rendering has finished. Instead, tile-based denoising is now part of the "RENDER" task again, so that it is all in one task and does not cause issues with dedicated task pools where tasks are serialized. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6940 --- intern/cycles/device/device_task.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'intern/cycles/device/device_task.h') diff --git a/intern/cycles/device/device_task.h b/intern/cycles/device/device_task.h index 0f718528b86..972f6131092 100644 --- a/intern/cycles/device/device_task.h +++ b/intern/cycles/device/device_task.h @@ -64,7 +64,7 @@ class DenoiseParams { class DeviceTask : public Task { public: - typedef enum { RENDER, DENOISE, DENOISE_BUFFER, FILM_CONVERT, SHADER } Type; + typedef enum { RENDER, FILM_CONVERT, SHADER, DENOISE_BUFFER } Type; Type type; int x, y, w, h; @@ -90,7 +90,7 @@ class DeviceTask : public Task { void update_progress(RenderTile *rtile, int pixel_samples = -1); - function acquire_tile; + function acquire_tile; function update_progress_sample; function update_tile_sample; function release_tile; @@ -98,6 +98,7 @@ class DeviceTask : public Task { function map_neighbor_tiles; function unmap_neighbor_tiles; + uint tile_types; DenoiseParams denoising; bool denoising_from_render; vector denoising_frames; -- cgit v1.2.3