I found an issue with enabling OSL rendering mode and using regular displacement.
The scene and materials were made without OSL in mind at first, but recently I decided to do couple parts with OSL shading. The issue is that the displacement with OSL support turned on looks completly broken. I don’t know if this is expected, or my scene got corrupted, or it’s a bug. The issue is present in 3 different releases: official 2.83, 2.90 June 01 (hash: 1d4bae856690) and 2.90 June 07 (hash: 281319653e5b).
Without OSL (correct displacement):
With OSL:
The shader you see utilise AO, pointiness, slope and elevation to mask and mix different textures.
OSL it’s not used in this shader, but in another object that is in the scene.
Thanks in advance for any help.