mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Test] (TranslationCache): pin the two interface-block location-strip flags as L2 key material
This commit is contained in:
@@ -1001,6 +1001,20 @@ TEST_F(TranslationCacheTest, L2KeyMovesWithEveryGateThatSteersTheEsslChain) {
|
||||
v.outputBlockRenames = &otherIoBlockRenames;
|
||||
variants.emplace_back("outputBlockRenames(other target)", BuildEsslTranslationKey(v));
|
||||
}
|
||||
{ // the two arguments to StripIoBlockLocationsForEssl, and separate cases for the same
|
||||
// reason the rename maps are: a stage strips the blocks it CONSUMES only when the
|
||||
// producer is in this program and the ones it PRODUCES only when the consumer is, so
|
||||
// the two directions are independently armed and a key that folded them together
|
||||
// would serve a fragment stage's ESSL to a vertex stage that needs the opposite.
|
||||
EsslTranslationKeyInputs v = base;
|
||||
v.stripInputBlockLocations = true;
|
||||
variants.emplace_back("stripInputBlockLocations", BuildEsslTranslationKey(v));
|
||||
}
|
||||
{
|
||||
EsslTranslationKeyInputs v = base;
|
||||
v.stripOutputBlockLocations = true;
|
||||
variants.emplace_back("stripOutputBlockLocations", BuildEsslTranslationKey(v));
|
||||
}
|
||||
{
|
||||
EsslTranslationKeyInputs v = base;
|
||||
v.enableSpirvValidation = true;
|
||||
|
||||
Reference in New Issue
Block a user