Fix T49630: Cycles: Swapped shader and bake kernels
The problem here was, as the title says, that the two kernels were swapped. Since shader evaluation is only used for building the samling map when World MIS is enabled, rendering without it would still work fine, although baking also was broken.
This commit is contained in:
parent
d5dd12e56c
commit
cd843409d3
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #49630, regression MIS Split kernel OpenCL
|
@ -489,9 +489,9 @@ void OpenCLDeviceBase::shader(DeviceTask& task)
|
|||
cl_kernel kernel;
|
||||
|
||||
if(task.shader_eval_type >= SHADER_EVAL_BAKE)
|
||||
kernel = base_program(ustring("shader"));
|
||||
else
|
||||
kernel = base_program(ustring("bake"));
|
||||
else
|
||||
kernel = base_program(ustring("shader"));
|
||||
|
||||
cl_uint start_arg_index =
|
||||
kernel_set_args(kernel,
|
||||
|
|
Loading…
Reference in New Issue