File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11766,10 +11766,10 @@ void CompilerGLSL::disallow_forwarding_in_expression_chain(const SPIRExpression
1176611766 // Allow trivially forwarded expressions like OpLoad or trivial shuffles,
1176711767 // these will be marked as having suppressed usage tracking.
1176811768 // Our only concern is to make sure arithmetic operations are done in similar ways.
11769- if (expression_is_forwarded(expr.self) && !expression_suppresses_usage_tracking(expr.self) &&
11770- forced_invariant_temporaries.count(expr.self) == 0)
11769+ if (forced_invariant_temporaries.count(expr.self) == 0)
1177111770 {
11772- force_temporary_and_recompile(expr.self);
11771+ if (!expression_suppresses_usage_tracking(expr.self))
11772+ force_temporary_and_recompile(expr.self);
1177311773 forced_invariant_temporaries.insert(expr.self);
1177411774
1177511775 for (auto &dependent : expr.invariance_dependencies)
You can’t perform that action at this time.
0 commit comments