forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[graphite][compute] Add mechanism for late-bound workgroup memory
naga-generated MSL declares WGSL workgroup shared memory buffers as entry-point function parameters. This triggers a Metal API validation error requiring that they be initialized like a late bound resource. Unlike device-memory buffers and textures, workgroup resources are not represented by API objects. Metal requires that the size of the buffers to be specified by calling [MTLComputeCommandEncoder setThreadgroupMemoryLength:atIndex:]. ComputeSteps now allow their subclasses to optionally specify a list of workgroup buffer sizes and indices separately from buffer and texture resources. The backend is responsible for making the appropriate API calls (if any) when it processes a dispatch command submission. Bug: b/272520336 Change-Id: I285f3546ebb6745d1ea9bec55dd54d5a9b5e125c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/666636 Reviewed-by: Jim Van Verth <[email protected]> Commit-Queue: Arman Uguray <[email protected]>
- Loading branch information
Showing
7 changed files
with
162 additions
and
2 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
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
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
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