Nice catch, but NAK on the proposed solution. The NULL prefix is passed to 'evergreen_surface_check' intentionally to disable printing the warnings, and explicitly handled, but there's one place where the NULL check was likely forgotten.
I've proposed a patch adding it there with a detailed explanation: https://lists.freedesktop.org/archives/amd-gfx/2026-May/144615.html
