Skip to content

nak: Loop to ensure we get accurate shader clocks

Faith Ekstrand requested to merge gfxstrand/mesa:nak/fix-shader-clock into main

Even though CS2R can fetch a whole 64 bits at a time, that doesn't mean it does so atomically. Instead, we need to loop, alternating high and low until we fetch the same high value twice.

Merge request reports