Files
test2/source/blender/gpu/opengl
Jeroen Bakker ce9be92adf Fix 106278: Intel iGPU Crashes When Switching to Eevee
After investigating the crash logs it looked like the macro
unrolling wasn't working on Windows systems with these GPUs.

Macro unrolling was changed in order to cross compile to Metal and
in the future to Vulkan. The macro unrolling in OpenGL can be removed
by using a different naming scema.

This PR removes the macro unrolling by changing the generated GLSL
code:

**Before**
```
layout(std140) uniform _probe_block
{
  ProbeBlock probe_block;
};
```

**After**
```
layout(std140) uniform probe_block
{
  ProbeBlock _probe_block;
};
```

Some tweaks had to be done to the Eevee-shaders to make sure that
the macro unrolling is done correctly and could be compiled using
legacy opengl drivers.

Fix: #106278
Fix: #106555
(and others)

Pull Request: https://projects.blender.org/blender/blender/pulls/106535
2023-04-06 08:03:25 +02:00
..
2023-04-05 14:39:51 +10:00
2022-08-15 16:10:29 +02:00
2023-04-04 15:16:07 +02:00
2023-04-04 15:16:07 +02:00
2023-04-04 15:16:07 +02:00
2023-04-04 15:16:07 +02:00
2023-03-01 21:42:25 +01:00