‹ BackHN Continuity

Thread

When the fractional part of a float fixes your shader

111 points · 19 comments · vinhnx

  1. LoganDark · · focus · HN ↗
    > Root cause: Nvidia driver 595.79 (RTX 4070) miscompiles GLSL fract() usage in this shader’s context for large-magnitude operands (~100–1000): the returned fractional part is temporally discontinuous (moves smoothly, then jumps).

    It looks like the LLM hallucinated a diagnosis of a miscompilation based on which fix worked. I would not treat its claim as accurate without further investigation.

    Edit: Read the rest of the article and it looks like further investigation was performed, and it had nothing to do with the GPU driver after all. Good stuff.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.