From 19ede29259804b4dd6dfd907cd68a4df419ec76e Mon Sep 17 00:00:00 2001 From: boykopovar Date: Wed, 7 Oct 2026 19:55:45 +0300 Subject: [PATCH] test(agc): fix mrt export index and vertex fetch abi checks --- .../prx/libSceAgcDriver/tests/execution/PreparedExports.cpp | 1 + core/libs/prx/libSceAgcDriver/tests/execution/VertexFetch.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/PreparedExports.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/PreparedExports.cpp index ffb80e3fb..b0b85a7b7 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/PreparedExports.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/PreparedExports.cpp @@ -55,6 +55,7 @@ void Run(AgcDriver::VulkanDevice& device, bool integer) { auto other = state.color; other.address = reinterpret_cast(otherPixels.data()); other.slot = 3; + other.exportIndex = 3; state.colors = {state.color, other}; state.hasColorTarget = true; state.renderExtent = {Extent, Extent}; diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/VertexFetch.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/VertexFetch.cpp index 182b63c3e..4baa2d05b 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/VertexFetch.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/VertexFetch.cpp @@ -77,7 +77,7 @@ void Run(AgcDriver::VulkanDevice& device) { const auto vertex = ShaderRecompiler::Recompile(request); Require(vertex.vertexInputs.empty() && vertex.vertexAttributes.empty(), "runtime vertex fetch created Vulkan vertex attributes"); Require(vertex.vertexOffsetSgpr == -1 && vertex.instanceOffsetSgpr == -1, "runtime vertex fetch requested draw offset folding"); - Require(vertex.bdaAbiVersion != 0u, "runtime vertex fetch has no BDA ABI"); + Require(vertex.runtimeAbiVersion == ShaderRecompiler::RuntimeAbi::Version, "runtime vertex fetch has an incompatible runtime ABI"); if (first.spirv.empty()) first = vertex; else Require(vertex.cacheHit && vertex.variantId == first.variantId, "runtime vertex descriptor changed the artifact"); const auto pushBytes = static_cast(vertex.pushConstants.size());