Mesa (master): microsoft/compiler: add dxil-util code

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 10 15:54:51 UTC 2020


Module: Mesa
Branch: master
Commit: dd5fe2f3de420778555f1211836c5ac076257f1c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd5fe2f3de420778555f1211836c5ac076257f1c

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Sep  4 11:51:29 2019 +0200

microsoft/compiler: add dxil-util code

This is support-code to emit the DirectX Intermediate Language, which is
a dialect of LLVM 3.7 bitcode. Because modern versions of LLVM doesn't
support emitting bitcode for older versions, and we can't rely on an old
LLVM version because we need the OpenCL support from Clang later on, we
instead implement our own LLVM bitcode encoder as part of this work.

See the official DXIL documentation for more details on DXIL:
https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst

The reason this comes as a separate library, is because we're also using
this code as the basis for an OpenCL C compiler, which will follow as a
separate merge-request later.

This is the combination of more than 230 commits from our development
branch, including the work from several authors.

Co-authored-by: Bill Kristiansen <billkris at microsoft.com>
Co-authored-by: Boris Brezillon <boris.brezillon at collabora.com>
Co-authored-by: Daniel Stone <daniels at collabora.com>
Co-authored-by: Gert Wollny <gert.wollny at collabora.com>
Co-authored-by: Jesse Natalie <jenatali at microsoft.com>
Co-authored-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>

---

 src/microsoft/compiler/dxil_buffer.c      |  104 +
 src/microsoft/compiler/dxil_buffer.h      |   60 +
 src/microsoft/compiler/dxil_buffer_test.c |  129 ++
 src/microsoft/compiler/dxil_container.c   |  353 +++
 src/microsoft/compiler/dxil_container.h   |  123 ++
 src/microsoft/compiler/dxil_dump.c        |  778 +++++++
 src/microsoft/compiler/dxil_dump.h        |   53 +
 src/microsoft/compiler/dxil_dump_decls.h  |  179 ++
 src/microsoft/compiler/dxil_enums.c       |  163 ++
 src/microsoft/compiler/dxil_enums.h       |  340 +++
 src/microsoft/compiler/dxil_function.c    |  236 ++
 src/microsoft/compiler/dxil_function.h    |   92 +
 src/microsoft/compiler/dxil_internal.h    |  300 +++
 src/microsoft/compiler/dxil_module.c      | 3320 +++++++++++++++++++++++++++++
 src/microsoft/compiler/dxil_module.h      |  469 ++++
 src/microsoft/compiler/dxil_signature.c   |  589 +++++
 src/microsoft/compiler/dxil_signature.h   |  161 ++
 src/microsoft/compiler/meson.build        |   57 +
 src/microsoft/meson.build                 |   22 +
 19 files changed, 7528 insertions(+)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=dd5fe2f3de420778555f1211836c5ac076257f1c


More information about the mesa-commit mailing list