-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[linux-port] Support full IID comparison on GCC (#3062)
The fallback layer for GCC currently uses pointer comparison to match IIDs as uuid tagging for types is not supported. Thus, when an external program dlopens libdxcompiler and calls with a proper REFIID these will not match internal pointers and result in E_NOINTERFACE. Note that the reverted patches before this commit alleviated the situation somewhat by replacing the pointer with a hash of the interface name. While this again grants a stable value to be used when called from external binaries these (usually FFI wrappers) now need to understand whether the library has been compiled with full IID support (as a binary compiled with Clang has no such limitations), and then pass the hash anywhere they'd otherwise pass an IID. WIP: Not all IIDs are added yet, which requires the extra "empty-GUID" check in IsEqualIID.
- Loading branch information
Showing
9 changed files
with
169 additions
and
253 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
Oops, something went wrong.