Add @blend_src as an alias for @index.
This is only a temporary aliasing while we update Skia to use @blend_src
instead of @index. @index will be renamed to @blend_src in a follow-up
CL.
Bug: dawn:2380
Change-Id: I68482b2821a37d02b910a74ffc22dfb9e19964a0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/171840
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
diff --git a/src/tint/lang/core/attribute_test.cc b/src/tint/lang/core/attribute_test.cc
index 10d8e72..6c61414 100644
--- a/src/tint/lang/core/attribute_test.cc
+++ b/src/tint/lang/core/attribute_test.cc
@@ -57,23 +57,15 @@
}
static constexpr Case kValidCases[] = {
- {"align", Attribute::kAlign},
- {"binding", Attribute::kBinding},
- {"builtin", Attribute::kBuiltin},
- {"color", Attribute::kColor},
- {"compute", Attribute::kCompute},
- {"diagnostic", Attribute::kDiagnostic},
- {"fragment", Attribute::kFragment},
- {"group", Attribute::kGroup},
- {"id", Attribute::kId},
- {"index", Attribute::kIndex},
- {"interpolate", Attribute::kInterpolate},
- {"invariant", Attribute::kInvariant},
- {"location", Attribute::kLocation},
- {"must_use", Attribute::kMustUse},
- {"size", Attribute::kSize},
- {"vertex", Attribute::kVertex},
- {"workgroup_size", Attribute::kWorkgroupSize},
+ {"align", Attribute::kAlign}, {"binding", Attribute::kBinding},
+ {"blend_src", Attribute::kBlendSrc}, {"builtin", Attribute::kBuiltin},
+ {"color", Attribute::kColor}, {"compute", Attribute::kCompute},
+ {"diagnostic", Attribute::kDiagnostic}, {"fragment", Attribute::kFragment},
+ {"group", Attribute::kGroup}, {"id", Attribute::kId},
+ {"index", Attribute::kIndex}, {"interpolate", Attribute::kInterpolate},
+ {"invariant", Attribute::kInvariant}, {"location", Attribute::kLocation},
+ {"must_use", Attribute::kMustUse}, {"size", Attribute::kSize},
+ {"vertex", Attribute::kVertex}, {"workgroup_size", Attribute::kWorkgroupSize},
};
static constexpr Case kInvalidCases[] = {
@@ -83,51 +75,54 @@
{"bind1ng", Attribute::kUndefined},
{"bqnJing", Attribute::kUndefined},
{"bindin7ll", Attribute::kUndefined},
- {"ppqqiliHH", Attribute::kUndefined},
- {"bucv", Attribute::kUndefined},
- {"biltGn", Attribute::kUndefined},
- {"covior", Attribute::kUndefined},
- {"co8WWr", Attribute::kUndefined},
- {"Mxxlo", Attribute::kUndefined},
- {"cXputgg", Attribute::kUndefined},
- {"opuXe", Attribute::kUndefined},
- {"comp3te", Attribute::kUndefined},
- {"diagnostiE", Attribute::kUndefined},
- {"TTiagnosPPi", Attribute::kUndefined},
- {"diagdoxxtic", Attribute::kUndefined},
- {"44ragment", Attribute::kUndefined},
- {"fSSagmenVV", Attribute::kUndefined},
- {"Rag2Rent", Attribute::kUndefined},
- {"gFup", Attribute::kUndefined},
- {"grop", Attribute::kUndefined},
- {"ROOHVp", Attribute::kUndefined},
- {"y", Attribute::kUndefined},
- {"Gn77rl", Attribute::kUndefined},
- {"04d", Attribute::kUndefined},
- {"oox", Attribute::kUndefined},
- {"inzz", Attribute::kUndefined},
- {"1ippex", Attribute::kUndefined},
- {"interpoXXate", Attribute::kUndefined},
- {"intII99r55olate", Attribute::kUndefined},
- {"intaarpoSSrHHYe", Attribute::kUndefined},
- {"kkvHant", Attribute::kUndefined},
- {"jgaianRR", Attribute::kUndefined},
- {"inaianb", Attribute::kUndefined},
- {"locajion", Attribute::kUndefined},
- {"locaton", Attribute::kUndefined},
- {"loqion", Attribute::kUndefined},
- {"mustusNN", Attribute::kUndefined},
- {"usvvuse", Attribute::kUndefined},
- {"mut_QQse", Attribute::kUndefined},
- {"srf", Attribute::kUndefined},
- {"sije", Attribute::kUndefined},
- {"NNz2w", Attribute::kUndefined},
- {"vrtex", Attribute::kUndefined},
- {"rrertex", Attribute::kUndefined},
- {"vGrtex", Attribute::kUndefined},
- {"workgroup_sizFF", Attribute::kUndefined},
- {"wErkrp_size", Attribute::kUndefined},
- {"worgrroup_size", Attribute::kUndefined},
+ {"blen_sppqHH", Attribute::kUndefined},
+ {"blen_r", Attribute::kUndefined},
+ {"bbndGsrc", Attribute::kUndefined},
+ {"builiivn", Attribute::kUndefined},
+ {"8WWiltin", Attribute::kUndefined},
+ {"bxxltin", Attribute::kUndefined},
+ {"cggor", Attribute::kUndefined},
+ {"VoX", Attribute::kUndefined},
+ {"colo3", Attribute::kUndefined},
+ {"Eompute", Attribute::kUndefined},
+ {"cPTTpute", Attribute::kUndefined},
+ {"compudxx", Attribute::kUndefined},
+ {"diagno44tic", Attribute::kUndefined},
+ {"diaVVSnostic", Attribute::kUndefined},
+ {"2iRRnostic", Attribute::kUndefined},
+ {"rFg9ent", Attribute::kUndefined},
+ {"frament", Attribute::kUndefined},
+ {"ROOrHgeVt", Attribute::kUndefined},
+ {"royp", Attribute::kUndefined},
+ {"n77rrloGp", Attribute::kUndefined},
+ {"grou40", Attribute::kUndefined},
+ {"HH", Attribute::kUndefined},
+ {"p", Attribute::kUndefined},
+ {"1ii", Attribute::kUndefined},
+ {"XXndex", Attribute::kUndefined},
+ {"in9IInn5x", Attribute::kUndefined},
+ {"HHrnSSaYx", Attribute::kUndefined},
+ {"nHkkolate", Attribute::kUndefined},
+ {"jRRterogte", Attribute::kUndefined},
+ {"iterpolbe", Attribute::kUndefined},
+ {"invariajt", Attribute::kUndefined},
+ {"ivariant", Attribute::kUndefined},
+ {"ivariqt", Attribute::kUndefined},
+ {"locaioNN", Attribute::kUndefined},
+ {"ocvvion", Attribute::kUndefined},
+ {"loatQQon", Attribute::kUndefined},
+ {"musf_re", Attribute::kUndefined},
+ {"mujt_use", Attribute::kUndefined},
+ {"muswNN82e", Attribute::kUndefined},
+ {"sze", Attribute::kUndefined},
+ {"sirre", Attribute::kUndefined},
+ {"sGze", Attribute::kUndefined},
+ {"verFFex", Attribute::kUndefined},
+ {"vre", Attribute::kUndefined},
+ {"vrrrte", Attribute::kUndefined},
+ {"orkgroup_sze", Attribute::kUndefined},
+ {"DXkgroJJp_size", Attribute::kUndefined},
+ {"wo8kroup_sz", Attribute::kUndefined},
};
using AttributeParseTest = testing::TestWithParam<Case>;