-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[DirectX] Add static sampler support to root signature #143422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
0abacfc
adding support for Root Descriptors
8b8c02a
clean up
7ac9641
addressing comments
c105458
formating
efe76aa
try fix test
a928e9d
addressing comments
a38f10b
refactoring mcdxbc struct to store root parameters out of order
9a7c359
changing name
d6c2b55
changing variant to host pointers
93e4cf2
clean up
b45b1b6
fix
f804a23
fix
15eb6f5
fix naming
b9d7f07
fix naming
46cc8c1
addressing comments
1b3e10a
addressing comments
1f31957
addressing comments
e8fbfce
clean up
a31e5a5
removing v parameter
a394ad0
Merge branch 'obj2yaml/root-descriptors' into refactoring/remove-union
ad415a7
clean up
8ff4845
Merge branch 'main' into refactoring/remove-union
f875555
adding support for root descriptors
4f7f998
removing none as a flag option
3eb5e10
adding tests
58e1789
clean up and add more tests
81915ad
addressing comments
a515e28
Merge branch 'main' into metadata/root-descriptors
0d54162
clean
7f70dc5
cleanup
3e6b07e
add parsing
bb1a61f
add tests
8979ab7
adding support on analysis printer
be60d51
adding support on analysis printer
0c570c8
adding requested comment
c3d24b6
clean up
d1ca37d
addressing PR comments
cb0780b
formating
eeffded
addressing PR comments
3cbe0cf
formating
92b766b
formating
0259cf7
adding test
8732594
adding test
fdb8b98
clean up
8b61ffd
Merge branch 'metadata/root-descriptors' into metadata/descriptor-table
0b3e16b
format
750a6d5
Merge branch 'main' into metadata/descriptor-table
72b8dbc
addressing comments
8f069c7
fix
440566c
addressing comments
72ca44b
address coments
90f7403
remove diff
7a4382e
address comments
1c608f4
address comments
3b8b2e1
Merge branch 'bugfix/wrong-values-root-descriptor-flags' into metadat…
e0bc5e3
fix
35a2e0b
fix other values
655b3b4
Merge branch 'bugfix/wrong-values-root-descriptor-flags' into metadat…
91346a7
adding more tests
e8066df
address comments
9f51858
adding metadata support for static samplers
fb9c7c4
add validations
611f0bb
adding tests
42beb33
addressing comments
0995050
fix
24f38bd
rebase
15f4f49
Merge branch 'main' into metadata/descriptor-table
638d961
remove empty file
8b831f8
adding check for mutually exclusive descriptor flags
5c677a5
format
bce790c
address comments
fefe820
remove value
e577503
adding support to version in metadata
746c54a
fix tests
c5a1009
Merge branch 'metadata/add-versioning-support' into metadata/descript…
a66e6a3
add test
351eee2
Merge branch 'main' into metadata/descriptor-table
4a0a955
fix merge and test issues
4e655da
addressing comments
c31af32
Merge branch 'metadata/descriptor-table' into metadata/static-samplers
2507ea3
address comment
cf11ce0
Merge branch 'main' into metadata/static-samplers
91cb708
Merge branch 'main' into metadata/static-samplers
7040af7
improve validation
e2eee99
clean
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
addressing comments
- Loading branch information
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/llvm/include/llvm/BinaryFormat/DXContainer.h b/llvm/include/llvm/BinaryFormat/DXContainer.h | ||
index 08949e39716d..725c405b77e5 100644 | ||
--- a/llvm/include/llvm/BinaryFormat/DXContainer.h | ||
+++ b/llvm/include/llvm/BinaryFormat/DXContainer.h | ||
@@ -164,7 +164,7 @@ enum class RootDescriptorFlag : uint32_t { | ||
#include "DXContainerConstants.def" | ||
}; | ||
|
||
-#define DESCRIPTOR_RANGE_FLAG(Num, Val) Val = 1ull << Num, | ||
+#define DESCRIPTOR_RANGE_FLAG(Num, Val) Val = Num, | ||
enum class DescriptorRangeFlag : uint32_t { | ||
#include "DXContainerConstants.def" | ||
}; | ||
diff --git a/llvm/include/llvm/BinaryFormat/DXContainerConstants.def b/llvm/include/llvm/BinaryFormat/DXContainerConstants.def | ||
index 501ef0c31cdd..c4895ee8ed65 100644 | ||
--- a/llvm/include/llvm/BinaryFormat/DXContainerConstants.def | ||
+++ b/llvm/include/llvm/BinaryFormat/DXContainerConstants.def | ||
@@ -90,11 +90,11 @@ ROOT_DESCRIPTOR_FLAG(3, DATA_STATIC) | ||
#ifdef DESCRIPTOR_RANGE_FLAG | ||
|
||
DESCRIPTOR_RANGE_FLAG(0, NONE) | ||
-DESCRIPTOR_RANGE_FLAG(1, DESCRIPTORS_VOLATILE) | ||
-DESCRIPTOR_RANGE_FLAG(2, DATA_VOLATILE) | ||
-DESCRIPTOR_RANGE_FLAG(3, DATA_STATIC_WHILE_SET_AT_EXECUTE) | ||
-DESCRIPTOR_RANGE_FLAG(4, DATA_STATIC) | ||
-DESCRIPTOR_RANGE_FLAG(16, DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS) | ||
+DESCRIPTOR_RANGE_FLAG(0x1, DESCRIPTORS_VOLATILE) | ||
+DESCRIPTOR_RANGE_FLAG(0x2, DATA_VOLATILE) | ||
+DESCRIPTOR_RANGE_FLAG(0x4, DATA_STATIC_WHILE_SET_AT_EXECUTE) | ||
+DESCRIPTOR_RANGE_FLAG(0x8, DATA_STATIC) | ||
+DESCRIPTOR_RANGE_FLAG(0x10000, DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS) | ||
#undef DESCRIPTOR_RANGE_FLAG | ||
#endif // DESCRIPTOR_RANGE_FLAG | ||
|
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.