From 0275abd8a89e1fe2643c1164f04024f972ec7518 Mon Sep 17 00:00:00 2001 From: LeandroLP23 Date: Tue, 6 Oct 2026 09:48:06 +0200 Subject: [PATCH] test(agc): skip the 2D derivative cases without non-constant texel offsets The 2D shader samples with computed texel offsets, which the recompiler accepts only with VK_KHR_maintenance8; without it the whole test failed before the 3D and 1D cases ran. Co-Authored-By: Claude Opus 5.5 --- .../tests/execution/ImageSampleDerivatives.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleDerivatives.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleDerivatives.cpp index 5c29b7e6c..34488c71a 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleDerivatives.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleDerivatives.cpp @@ -329,10 +329,12 @@ int main() { if (device->Target().subgroupSize < Threads) { std::printf("EXEC-masked cases skipped, subgroup size %u cannot hold a wave32\n", device->Target().subgroupSize); } + const bool computedOffsets = device->Target().nonConstantImageOffsets; + if (!computedOffsets) std::puts("2D cases skipped, their computed texel offsets need VK_KHR_maintenance8"); std::vector waves{Threads}; if (device->Target().subgroupSize >= Threads) waves.push_back(Wave64Threads); for (const auto threads : waves) { - Run(*device, Code2D, threads, 9u, Height, 1u, Names2D, Masked2D, Expected2D); + if (computedOffsets) Run(*device, Code2D, threads, 9u, Height, 1u, Names2D, Masked2D, Expected2D); Run(*device, Code3D, threads, 10u, Height, Depth, Names3D, Masked3D, Expected3D); Run(*device, Code1D, threads, 8u, 1u, 1u, Names1D, Masked1D, Expected1D); }