This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Strange offline shader compiler results for G76 target

I've optimized some math in my shader - got rid of unnecessary uniform computations by offloading them to CPU.

When testing old vs new shader against G52 and G76 targets (Bifrost) I see that `Has uniform computation` changed from `true` to `false`, and number or used uniform registers reduced from 12 to 16.

However, when target is Valhall (either 1st or 2nd gen) GPUs, the results are rather strange. For some reason, compiler still detects uniform computations, and outputs are identical for both new and old shaders.

Old shader:

New shader:

0