-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move private memory usage detection to PrivateMemoryResolution
Previously detection was placed in LowerGEPForPrivMem, which could be not correct if PromoteMemoryToRegister menaged to promote given alloca. This could cause situation where PromoteMemoryToRegister removed last alloca in shader, meaning potential later spill/fill should be stored in slot0 instead of slot1, but detection mechanism still would force using slot1. This would lead to situation where UMD programs only slot0, but spills are written to slot1, causing crash.
- Loading branch information
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters