LuxCoreRender / LuxCore

LuxCore source repository
Apache License 2.0
1.15k stars 144 forks source link

Amd gpu fails to render triplanar normal map #465

Open Asticles opened 3 years ago

Asticles commented 3 years ago

.blend file: amd_normal.zip

Steps to reproduce: Render on the viewport with amd gpu, if only cpu is used, render is fine.

Screenshots or rendered images: normal_error

Error message from Blender console: None, as far I can see.

OS: windows 10 Blender version: 2.83 LuxCore version: 2.4 Gpu: Radeon RX 480, drivers version 20.11.1

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/94118171-amd-gpu-fails-to-render-triplanar-normal-map?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github).
Dade916 commented 3 years ago

This is likely to be a similar problem of https://github.com/LuxCoreRender/BlendLuxCore/issues/530#issuecomment-674383174

The AMD compiler doesn't generate correct code when some structure is updated and it probably uses the old cached value instead of the new one.

It is an AMD-only problem and probably a bug in their compiler. I don't have an AMD GPU anymore so I can not look for a workaround.

Asticles commented 3 years ago

So, Amd gpus are not being bugfixed in luxcore?

Dade916 commented 3 years ago

As far as I know it is a AMD bug: I can not fix their compiler.

I can only find workarounds to their bugs. I have done that for years and now I'm a bit tired.

Theverat commented 3 years ago

@Asticles You could try to create a bug report in the AMD driver bugtracker.