Skip to content

gallium/u_threaded: Get reset status without sync

Rob Clark requested to merge robclark/mesa:tc/reset-status-nosync into main

GPU hangs are asynchronous already, there should not be an expectation that this is synchronized with driver thread.


I noticed chrome(ium) regularly calls glGetGraphicsResetStatus(), causing TC syncs. It does appear to at least ratelimit the calls to 5ms. But I'm not convinced that we need to sync with driver thread here, as GPU resets are already async.

For freedreno, this call basically just boils down to a ioctl call to query the reset count from the kernel, which should be safe to do from frontend thread instead of driver thread. I'm less sure about other drivers. Possibly we should let drivers opt-in to no-sync reset status queries?

Edited by Rob Clark

Merge request reports