mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 08:21:56 +09:00
[Test] (MG_Test, MG_IntegrationTest, P5b): pin i1 seven class-B slots and the served compute program, and arm 24 inproc lane entries whose results only exist if the records crossed
This commit is contained in:
@@ -1935,6 +1935,55 @@ if (MOBILEGL_BUILD_DISAGGREGATED)
|
||||
ENVIRONMENT "${MGL_ITEST_GLES_SPLIT_ENVIRONMENT}"
|
||||
)
|
||||
|
||||
# ---- P5b package i1 (MG_Remote/CONTRACT-P5B.md §2 i1) --------------------------------
|
||||
#
|
||||
# THE LANE CASE THAT PROVES THE RECORDS CROSSED, and it is a RESULT and not a probe (R-16:
|
||||
# a probe may not arm against a stub). Each of these four scenarios asserts a value that
|
||||
# only exists if the verb ran on the apply thread - the texel a compute shader stored
|
||||
# through an image unit, the word glCopyImageSubData moved, the counter an atomic add left
|
||||
# behind, the block a program pipeline rebound - so a sink that DECLINED, or a client that
|
||||
# fell through to the driver, is red by the number it reads back and not by a tally.
|
||||
#
|
||||
# Before i1 every one of these aborted at the client's Fatal{UnmigratedVerb} on the first
|
||||
# glBindImageTexture / glDispatchCompute / glCopyImageSubData / glShaderStorageBlockBinding;
|
||||
# all four are green under inproc now (the census: 13 + 6 + 11 + 3 DirectGLES entries).
|
||||
# RED ONCE BY DOING X: return false from ServerVerbSink::OnLaunchGrid before the
|
||||
# gl.DispatchCompute call and UnboundImageDescriptor / AtomicCounter / ProgramPipeline all
|
||||
# read back their initial values.
|
||||
#
|
||||
# THE FILTERS ARE NARROWED TO THE CASES THAT ACTUALLY EMIT, and that is ScenarioFixture's
|
||||
# rule rather than a convenience: an armed `DirectGLES.Split.` case must move the client
|
||||
# encoder's record ordinal (ScenarioFixture.h:86), because a lane whose workload produced no
|
||||
# record is the "resolved the transport and then fell through to the driver" shape that
|
||||
# every pixel assertion is blind to. ProgramPipelineScenario's other nine cases are pure
|
||||
# name/state cases that draw nothing, so the whole-scenario filter would arm them and they
|
||||
# would be red for having nothing to say. The two named here are the ones that were
|
||||
# Fatal{UnmigratedVerb, "ShaderStorageBlockBinding"} on the c0b head.
|
||||
#
|
||||
# One block per scenario, following the three above: a `:`-separated multi-pattern
|
||||
# TEST_FILTER is unproven through gtest_discover_tests' flat PROPERTIES forwarding.
|
||||
set(MGL_SPLIT_I1_SCENARIOS
|
||||
UnboundImageDescriptorScenario # bind_shader_image (72) + launch_grid (60), 13 cases
|
||||
CopyImageLayeredScenario # resource_copy_region (53), 6 cases
|
||||
AtomicCounterScenario # launch_grid (60) + memory_barrier (61), 3 cases
|
||||
ProgramPipelineScenario) # set_storage_block_binding (75), the 2 storage-block cases
|
||||
set(MGL_SPLIT_I1_FILTER_UnboundImageDescriptorScenario "UnboundImageDescriptorScenario.*")
|
||||
set(MGL_SPLIT_I1_FILTER_CopyImageLayeredScenario "CopyImageLayeredScenario.*")
|
||||
set(MGL_SPLIT_I1_FILTER_AtomicCounterScenario "AtomicCounterScenario.*")
|
||||
set(MGL_SPLIT_I1_FILTER_ProgramPipelineScenario "ProgramPipelineScenario.*StorageBlock*")
|
||||
foreach(mglItestI1Scenario IN LISTS MGL_SPLIT_I1_SCENARIOS)
|
||||
gtest_discover_tests(MobileGLIntegrationTest
|
||||
TEST_PREFIX "DirectGLES.Split."
|
||||
TEST_LIST "MGL_SPLIT_I1_${mglItestI1Scenario}_TESTS"
|
||||
TEST_FILTER "${MGL_SPLIT_I1_FILTER_${mglItestI1Scenario}}"
|
||||
DISCOVERY_TIMEOUT 30
|
||||
PROPERTIES
|
||||
LABELS "integration-gpu\;integration-split"
|
||||
TIMEOUT ${MGL_ITEST_TIMEOUT}
|
||||
ENVIRONMENT "${MGL_ITEST_GLES_SPLIT_ENVIRONMENT}"
|
||||
)
|
||||
endforeach()
|
||||
|
||||
# The split half of the counting pair. MGITEST_PERSISTENT_MAP_ARM=emulated is R-6: under split
|
||||
# the adopt tier is pinned at T2, the resource owner declines every acquisition and the client
|
||||
# pushes the mapping's dirty blocks - so pmap must be non-zero and mpr must be the monolith
|
||||
|
||||
@@ -11,4 +11,13 @@ foreach(scenario @MGL_SPLIT_SMALL_RING_SCENARIOS@)
|
||||
"MOBILEGL_LOG_FILE_PATH=@CMAKE_CURRENT_BINARY_DIR@/split-logs/${entry}.log")
|
||||
endforeach()
|
||||
endforeach()
|
||||
# P5b package i1's four scenarios, the same shape as the small-ring loop above: every
|
||||
# DirectGLES.Split. entry owns exactly one absolute log path and shares it with nobody, which
|
||||
# is what SplitLogPaths.PrivateAndDistinct checks over the discovered set.
|
||||
foreach(scenario @MGL_SPLIT_I1_SCENARIOS@)
|
||||
foreach(entry IN LISTS MGL_SPLIT_I1_${scenario}_TESTS)
|
||||
set_tests_properties("${entry}" PROPERTIES ENVIRONMENT
|
||||
"MOBILEGL_LOG_FILE_PATH=@CMAKE_CURRENT_BINARY_DIR@/split-logs/${entry}.log")
|
||||
endforeach()
|
||||
endforeach()
|
||||
# PersistentMapArm retains its existing private path and RESOURCE_LOCK: b1 reads it.
|
||||
|
||||
Reference in New Issue
Block a user