blender/intern/cycles/kernel
Sergey Sharybin 226eb5e366 Cycles: Fix usage of double floating precision in CNanoVDB
Double floating point precision is an extension of OpenCL, which might
not be implemented by certain drivers, such as Intel Xe graphics.

Cycles does not use double floating point precision, and there is no
need on keeping doubles unless there is an explicit decision to use
them.

This is a simple fix from Cycles side to replace double floating point
type with a type of same size and alignment rules. Inspired by Brecht
and Patrick.

Tested on NVidia Titan V, Radeon RX Vega M, and TGL laptop.

Differential Revision: https://developer.blender.org/D10143
2021-01-22 14:31:06 +01:00
..
bvh Cycles: Add CPU+GPU rendering support with OptiX 2020-12-11 13:24:29 +01:00
closure Fix Cycles SSS incorrect rendering of zero radius in green channel 2020-09-22 16:28:12 +02:00
filter Cleanup: extra semicolons, comma use, undeclared vars 2020-02-11 12:04:50 +11:00
geom Fix T82966, T78152: Cycles GPU render hair ribbon artifacts and differences 2021-01-20 19:59:43 +01:00
kernels Cycles: Fix usage of double floating precision in CNanoVDB 2021-01-22 14:31:06 +01:00
osl Fix Cycles build error with OSL 1.12 2021-01-15 15:41:17 +01:00
shaders Cleanup: clang-format 2020-11-11 09:11:43 +11:00
split Fix T82351: Cycles: Tile stealing glitches with adaptive sampling 2021-01-11 21:04:49 +01:00
svm Cycles: Add support for shader raytracing in OptiX 2020-12-04 13:04:11 +01:00
CMakeLists.txt Cycles: Add support for shader raytracing in OptiX 2020-12-04 13:04:11 +01:00
kernel_accumulate.h Cleanup: use float3 instead of float4 for shadow, since w is never used 2020-09-22 16:36:43 +02:00
kernel_adaptive_sampling.h Fix T76925: more Cycles OpenCL compile errors with some drivers on Linux 2020-05-25 17:06:10 +02:00
kernel_bake.h Cleanup: use float3 instead of float4 for shadow, since w is never used 2020-09-22 16:36:43 +02:00
kernel_camera.h Cleanup: spelling 2020-07-07 12:49:13 +10:00
kernel_color.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_compat_cpu.h Cleanup: make format after SortedIncludes change 2020-03-19 09:33:58 +01:00
kernel_compat_cuda.h Fix Cycles kernel compile error with NanoVDB because of type redefinition 2020-11-02 18:00:13 +01:00
kernel_compat_opencl.h Cycles: Remove Compilation Warning 2020-11-23 16:36:15 +01:00
kernel_compat_optix.h Fix Cycles kernel compile error with NanoVDB because of type redefinition 2020-11-02 18:00:13 +01:00
kernel_differential.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_emission.h Cycles: Add new Sky Texture method including direct sunlight 2020-06-17 21:06:41 +02:00
kernel_film.h Fix T80129: Cycles shadow catcher viewport error with exposure other than 1 2020-08-26 19:26:38 +02:00
kernel_globals.h Cleanup: make format after SortedIncludes change 2020-03-19 09:33:58 +01:00
kernel_id_passes.h Cleanup: comments (long lines) in cycles 2019-05-01 21:41:07 +10:00
kernel_jitter.h Fix T74423: Cycles rendering artifacts with CUDA 10.2 2020-04-22 16:40:52 +02:00
kernel_light_background.h Cleanup: spelling 2020-11-20 11:39:22 +11:00
kernel_light_common.h Cycles: Add new Sky Texture method including direct sunlight 2020-06-17 21:06:41 +02:00
kernel_light.h Cleanup: spelling 2020-11-20 11:39:22 +11:00
kernel_math.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_montecarlo.h Cycles: Add new Sky Texture method including direct sunlight 2020-06-17 21:06:41 +02:00
kernel_passes.h Cleanup: use float3 instead of float4 for shadow, since w is never used 2020-09-22 16:36:43 +02:00
kernel_path_branched.h Fix T76925: more Cycles OpenCL compile errors with some drivers on Linux 2020-05-25 17:06:10 +02:00
kernel_path_common.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_path_state.h Cycles: Track specular throughput to account for reflection color in denoising albedo pass 2020-02-06 03:37:48 +01:00
kernel_path_subsurface.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_path_surface.h Cycles: perform clamping per light contribution instead of whole path 2019-12-12 13:04:43 +01:00
kernel_path_volume.h Cycles: perform clamping per light contribution instead of whole path 2019-12-12 13:04:43 +01:00
kernel_path.h Fix T79259: OptiX render with fisheye camera is different to CUDA 2020-07-28 15:45:46 +02:00
kernel_profiling.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_projection.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
kernel_queues.h Cleanup: spelling, repeated words 2019-11-25 00:55:11 +11:00
kernel_random.h Fix T74423: Cycles rendering artifacts with CUDA 10.2 2020-04-22 16:40:52 +02:00
kernel_shader.h Cycles: support shader transparency for holdout objects 2020-07-08 13:18:19 +02:00
kernel_shadow.h Fix T72470: OptiX render fails with scene with many translucent planes on Linux. 2020-01-10 15:47:51 +01:00
kernel_subsurface.h Cycles: Add support for shader raytracing in OptiX 2020-12-04 13:04:11 +01:00
kernel_textures.h Cycles: change volume step size controls, auto adjust based on voxel size 2020-03-18 11:23:05 +01:00
kernel_types.h Cycles: remove surface area computation for meshes with OSL 2020-12-24 13:53:33 +01:00
kernel_volume.h Cycles: Add support for shader raytracing in OptiX 2020-12-04 13:04:11 +01:00
kernel_work_stealing.h Fix T76925: more Cycles OpenCL compile errors with some drivers on Linux 2020-05-25 17:06:10 +02:00
kernel_write_passes.h Cycles: support for custom shader AOVs 2019-12-10 20:44:46 +01:00
kernel.h Cleanup: make format after SortedIncludes change 2020-03-19 09:33:58 +01:00