diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2016-07-24 03:04:08 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2016-07-24 03:21:09 +0300 |
commit | 50fb0899ba650f438fe1262bc479b5e8754a2332 (patch) | |
tree | faccd2b536ce345b5eaea7f130bafdccb265acbc /intern/cycles/render/session.cpp | |
parent | 7feef16b0dd28aacb23a1d9ca3683b1e878b2277 (diff) |
Cycles: Add temporary debugging environment variable, fix debug file extensions
As explained previously, CPUs currently get the out-of-tile pixels for denoising
from neighbor tiles, while GPUs just render bigger tiles internally.
However, implementation differences can make the GPU version (aka "overscan" rendering)
fail while the CPU code works.
Therefore, this commit adds a environment variable check for whether CPU_OVERSCAN is defined,
and enables the already-present CPU single-tile overscan mode for easier debugging.
Note that this has no benefits at all for regular use and will be removed later!
Diffstat (limited to 'intern/cycles/render/session.cpp')
-rw-r--r-- | intern/cycles/render/session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp index 401e35e0b49..f266815ba64 100644 --- a/intern/cycles/render/session.cpp +++ b/intern/cycles/render/session.cpp @@ -386,7 +386,7 @@ bool Session::acquire_tile(Device *tile_device, RenderTile& rtile) rtile.task = (tile->state == Tile::DENOISE)? RenderTile::DENOISE: RenderTile::PATH_TRACE; int overscan = 0; - const bool is_gpu = params.device.type == DEVICE_CUDA || params.device.type == DEVICE_OPENCL; + const bool is_gpu = params.device.type == DEVICE_CUDA || params.device.type == DEVICE_OPENCL || getenv("CPU_OVERSCAN"); if(params.denoise_result && is_gpu) { overscan = scene->integrator->half_window; rtile.x -= overscan; |