File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2922,7 +2922,7 @@ void tryReplaceUsesOfStageInput(
2922
2922
{
2923
2923
fieldVal = element.val ;
2924
2924
break ;
2925
- }
2925
+ }
2926
2926
if (auto tupleValType =
2927
2927
as<ScalarizedTupleValImpl>(element.val .impl ))
2928
2928
{
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ struct GlobalVarTranslationContext
89
89
bool hasExistingLayout = false ;
90
90
if (auto existingLayoutDecoration = input->findDecoration <IRLayoutDecoration>())
91
91
{
92
- if (auto existingVarLayout = as<IRVarLayout>(existingLayoutDecoration->getLayout ()))
92
+ if (auto existingVarLayout =
93
+ as<IRVarLayout>(existingLayoutDecoration->getLayout ()))
93
94
{
94
95
fieldTypeLayout = existingVarLayout->getTypeLayout ();
95
96
hasExistingLayout = true ;
@@ -100,7 +101,7 @@ struct GlobalVarTranslationContext
100
101
{
101
102
fieldTypeLayout = fieldTypeLayoutBuilder.build ();
102
103
}
103
-
104
+
104
105
IRVarLayout::Builder varLayoutBuilder (&builder, fieldTypeLayout);
105
106
varLayoutBuilder.setStage (entryPointDecor->getProfile ().getStage ());
106
107
if (auto semanticDecor = input->findDecoration <IRSemanticDecoration>())
@@ -116,7 +117,7 @@ struct GlobalVarTranslationContext
116
117
fieldTypeLayoutBuilder.addResourceUsage (
117
118
LayoutResourceKind::VaryingInput,
118
119
LayoutSize (1 ));
119
- }
120
+ }
120
121
if (auto layoutDecor = findVarLayout (input))
121
122
{
122
123
if (auto offsetAttr =
You can’t perform that action at this time.
0 commit comments