Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2021-11-12 21:00:23 +0300
committerPatrick Mours <pmours@nvidia.com>2021-11-12 21:00:23 +0300
commit809ae823b7cb612fda219c0e277425bba175090f (patch)
tree35a4af9622f2c1cb5828872e36b5584314e7758b /intern
parent8a8bf99717117ae4aa96b1efcd8327fe59f44e5c (diff)
parent9d0d4b8601dfb9de335dd7af32562cbfb94238a6 (diff)
Merge branch 'blender-v3.0-release'
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/optix/device_impl.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/intern/cycles/device/optix/device_impl.cpp b/intern/cycles/device/optix/device_impl.cpp
index 8e554d0ba2f..bb690551c04 100644
--- a/intern/cycles/device/optix/device_impl.cpp
+++ b/intern/cycles/device/optix/device_impl.cpp
@@ -886,8 +886,7 @@ bool OptiXDevice::denoise_configure_if_needed(DenoiseContext &context)
denoiser_.scratch_offset = sizes.stateSizeInBytes;
/* Allocate denoiser state if tile size has changed since last setup. */
- denoiser_.state.alloc_to_device(denoiser_.scratch_offset + denoiser_.scratch_size +
- sizeof(float));
+ denoiser_.state.alloc_to_device(denoiser_.scratch_offset + denoiser_.scratch_size);
/* Initialize denoiser state for the current tile size. */
const OptixResult result = optixDenoiserSetup(
@@ -971,16 +970,6 @@ bool OptiXDevice::denoise_run(DenoiseContext &context, const DenoisePass &pass)
/* Finally run denoising. */
OptixDenoiserParams params = {}; /* All parameters are disabled/zero. */
- params.hdrIntensity = denoiser_.state.device_pointer + denoiser_.scratch_offset +
- denoiser_.scratch_size;
-
- optix_assert(
- optixDenoiserComputeIntensity(denoiser_.optix_denoiser,
- denoiser_.queue.stream(),
- &color_layer,
- params.hdrIntensity,
- denoiser_.state.device_pointer + denoiser_.scratch_offset,
- denoiser_.scratch_size));
OptixDenoiserLayer image_layers = {};
image_layers.input = color_layer;