[PATCH] D134315: [DX] [ObjectYAML] Support DX shader feature flags

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 14:32:35 PDT 2022


beanz created this revision.
beanz added reviewers: lhames, MaskRay, serge-sans-paille, pete, python3kgae, pow2clk, tex3d.
Herald added subscribers: Anastasia, StephenFan, hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

DXContainers contain a feature flag part, which stores a bitfield used
to denote what underlying hardware features the shader requires. This
change adds feature flags to the DXContainer YAML tooling to enable
testing generating feature flags during HLSL code generation.

Depends on D133980 <https://reviews.llvm.org/D133980>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134315

Files:
  llvm/include/llvm/BinaryFormat/DXContainer.h
  llvm/include/llvm/BinaryFormat/DXContainerConstants.def
  llvm/include/llvm/Object/DXContainer.h
  llvm/include/llvm/ObjectYAML/DXContainerYAML.h
  llvm/lib/Object/DXContainer.cpp
  llvm/lib/ObjectYAML/DXContainerEmitter.cpp
  llvm/lib/ObjectYAML/DXContainerYAML.cpp
  llvm/test/tools/obj2yaml/DXContainer/ShaderFlags.yaml
  llvm/test/tools/obj2yaml/DXContainer/ShaderFlagsEmpty.yaml
  llvm/tools/obj2yaml/dxcontainer2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134315.461709.patch
Type: text/x-patch
Size: 17788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/fc231b44/attachment.bin>


More information about the llvm-commits mailing list