test(agc): keep the smaller-extent fetch within the guaranteed dispatch size

The fetch runs one workgroup per sample, so 200x130 at 4 and 8 samples dispatched 104000 and 208000 groups, past the 65536 maxComputeWorkGroupCount[0] of an Intel iGPU. 104x67 and 97x66 keep the same pitch and padded height on both planes at 2, 4 and 8 samples, still span more than one block in both axes, and dispatch at most 55744 groups.
This commit is contained in:
hugodearaujo committed 2026-11-08 10:26:11 -03:00
1 parent 75d55bd6f1
commit 8cc85b8cb1
1 file changed
+1 -1
@@ -3430,7 +3430,7 @@ void CheckUniformPlanePublication(Context context, std::uint32_t samples, Unifor
}
void CheckSmallerExtent(Context context, std::uint32_t samples) {
constexpr VkExtent2D extent{200u, 130u}, smaller{193u, 129u};
constexpr VkExtent2D extent{104u, 67u}, smaller{97u, 66u};
const auto depthBytes = static_cast<std::size_t>(MultisampledDepthBytes_nid_no_patch(extent, 4u, samples));
const auto stencilBytes = static_cast<std::size_t>(MultisampledDepthBytes_nid_no_patch(extent, 1u, samples));
Require(depthBytes == MultisampledDepthBytes_nid_no_patch(smaller, 4u, samples) && stencilBytes == MultisampledDepthBytes_nid_no_patch(smaller, 1u, samples), "the smaller-extent fixture must keep the plane footprints");