Blender fixes

Root of the issue which this change tries to solve is that closure class might use structures which are expected to be aligned in memory. For example, in Blender closure has float3 structures which uses SSE registers and intrinsics for some operations.

When such classes are allocated with genuine allocation, the alignment is preserved. But since ClosureRegister uses pool the alignment assumptions are broken and there were no way to force class to be aligned in memory.

I've tried to make changes as much straightforward as possible and beneficial for everyone, but maybe there are ways to make them even more clear. There might be also different solution which i'm not seeing yet?

该提问来源于开源项目:imageworks/OpenShadingLanguage

查看全部
weixin_39911998
weixin_39911998
2020/11/27 15:52
  • 点赞
  • 收藏
  • 回答
    私信

6个回复