From 9f30fc500f874e1cf467082b503d8be57fcf06a6 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 3 Oct 2026 00:10:58 -0400 Subject: [PATCH] [Fix] (Magma): log how many SPIR-V modules the driver screen validated at renderer shutdown. --- MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp index 9d510a8e..a138113a 100644 --- a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp @@ -3510,6 +3510,10 @@ void main() { // P7 wave 2 package B3: the session's decline tally. Silent when nothing declined, so a // green lane stays quiet and a lane that dropped a draw cannot (rule I's observable). WireDeclineTally::Dump("shutdown"); + // The SPIR-V screen's engagement proof: a decline-free session above reads as "screened + // and valid" only with this count beside it (distinct modules, process-wide). + MGLOG_I("MGWIRE-SPIRV-SCREEN[shutdown] modulesValidated=%llu", + static_cast(ProgramFactory::DriverModuleValidatorRuns())); DestroyWireDrawPass(); CollectWireObjects(m_submitCounter, true); ClearAllWireDrawPassCaches();