Skip to content

Commit

Permalink
remove resource-spec change that is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielG-NV authored and kaizhangNV committed Sep 18, 2024
1 parent 6590c21 commit 4e242c6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/slang/slang-ir-specialize-resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ struct ResourceOutputSpecializationPass
newFunc->removeAndDeallocate();
// Check if `oldFunc` is the reason for failing,
// Otherwise don't add to 'unspecializableFuncs'
//
// Also ensure our func has uses, else we can just ignore specializing this function.
// Otherwise 'KeepAlive' will cause an infinite loop.
if(result == SpecializeFuncResult::ThisFuncFailed && oldFunc->hasUses())
if(result == SpecializeFuncResult::ThisFuncFailed)
unspecializableFuncs->add(oldFunc);
return false;
}
Expand Down

0 comments on commit 4e242c6

Please sign in to comment.