From 207b88fca958e4e33ded846ba67c433dabceab4e Mon Sep 17 00:00:00 2001 From: Nicolas Gonzalez Date: Sun, 1 Nov 2026 20:02:55 -0300 Subject: [PATCH] test(agc): give the mock context the placeholder of an oversized V# The mock graphics context set only the null V# placeholder, so binding an unregistered V# past the range limit now found no buffer. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceAgcDriver/tests/Graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp b/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp index 941a074032..3e632a7896 100644 --- a/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp @@ -6273,6 +6273,7 @@ void expectSingleAccepted(const ShaderRecompiler::DescriptorBinding& binding, st mock = MockVulkan{}; auto context = mockContext(); context.emptyBuffer = reinterpret_cast(std::uintptr_t{0x1000}); + context.oversizedBuffer = reinterpret_cast(std::uintptr_t{0x2000}); const auto color = AgcDriver::Graphics::DecodeState(makeState()).color; { AgcDriver::Graphics::ShaderResources resources(context, vertex, fragment, color, 0, 0); } Require(mock.live == 0, std::string(what) + " leaked Vulkan objects");