Mesa (master): microsoft/compiler: translate nir to dxil

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


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

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

microsoft/compiler: translate nir to dxil

Here's the code to emit DXIL code from NIR. It's big and bulky as-is,
and it needs to be split up a bit.

This is the combination of a lot of commits from our development branch,
containing code by 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/compiler/nir/nir_intrinsics.py                 |    4 +
 src/microsoft/compiler/dxil_nir.c                  |  156 +
 src/microsoft/compiler/dxil_nir.h                  |   40 +
 src/microsoft/compiler/dxil_nir_algebraic.py       |  133 +
 .../compiler/dxil_nir_lower_int_samplers.c         |  555 +++
 .../compiler/dxil_nir_lower_int_samplers.h         |   64 +
 src/microsoft/compiler/meson.build                 |   17 +-
 src/microsoft/compiler/nir_to_dxil.c               | 3725 ++++++++++++++++++++
 src/microsoft/compiler/nir_to_dxil.h               |   68 +
 9 files changed, 4761 insertions(+), 1 deletion(-)

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


More information about the mesa-commit mailing list