[llvm] [DirectX] adding support to read/write descriptor table data using obj2yaml/yaml2obj (PR #138315)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 07:12:30 PDT 2025
================
@@ -228,6 +273,19 @@ class RootSignature {
else
DataSize = sizeof(dxbc::RTS0::v2::RootDescriptor);
break;
+ case dxbc::RootParameterType::DescriptorTable:
+ uint32_t NumRanges =
+ support::endian::read<uint32_t, llvm::endianness::little>(
+ PartData.begin() + Header.ParameterOffset);
----------------
llvm-beanz wrote:
The DXContainer reader really needs to be hardened against crashing since this code may be used in drivers and/or runtime libraries.
We should at least validate that the offset is within the part's range and error appropriately.
https://github.com/llvm/llvm-project/pull/138315
More information about the llvm-commits
mailing list