[all-commits] [llvm/llvm-project] ad9390: [DX] Begin adding support for pipeline state

Chris B via All-commits all-commits at lists.llvm.org
Wed Feb 1 17:00:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad93908e3b5593773dfb0484ec06a36fafb5736a
      https://github.com/llvm/llvm-project/commit/ad93908e3b5593773dfb0484ec06a36fafb5736a
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/DXContainer.h
    M llvm/include/llvm/BinaryFormat/DXContainerConstants.def
    A llvm/include/llvm/MC/DXContainerPSVInfo.h
    M llvm/include/llvm/Object/DXContainer.h
    M llvm/include/llvm/ObjectYAML/DXContainerYAML.h
    M llvm/lib/MC/CMakeLists.txt
    A llvm/lib/MC/DXContainerPSVInfo.cpp
    M llvm/lib/Object/DXContainer.cpp
    M llvm/lib/ObjectYAML/DXContainerEmitter.cpp
    M llvm/lib/ObjectYAML/DXContainerYAML.cpp
    A llvm/test/ObjectYAML/DXContainer/PSVv0-amplification.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-compute.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-domain.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-geometry.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-hull.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-mesh.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-pixel.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv0-vertex.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-amplification.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-compute.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-domain.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-geometry.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-hull.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-mesh.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-pixel.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv1-vertex.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-amplification.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-compute.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-domain.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-geometry.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-hull.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-mesh.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-pixel.yaml
    A llvm/test/ObjectYAML/DXContainer/PSVv2-vertex.yaml
    M llvm/tools/obj2yaml/dxcontainer2yaml.cpp

  Log Message:
  -----------
  [DX] Begin adding support for pipeline state

DirectX shader pipeline state validation information is a fairly
complicated to serialize data structure. This patch adds the first bit
of support for reading and writing the runtime info structure which
comes first in the encoded data.

Subsequent patches will flesh out the remaining fields of the data
structure.

There is no official documentation for the format, but the format is
roughly documented in the code comment here:
https://github.com/microsoft/DirectXShaderCompiler/blob/main/include/dxc
/DxilContainer/DxilPipelineStateValidation.h#L731

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D141649




More information about the All-commits mailing list