Mesa (master): d3d12: introduce d3d12 gallium driver

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


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Sun May 26 10:43:12 2019 +0200

d3d12: introduce d3d12 gallium driver

This driver will allow running OpenGL and OpenCL on top of Gallium
for any hardware supporting Microsoft's Direct3D 12 on Windows 10.

This is the combination of a lot of commits from our development branch,
containing code from several authors.

Co-authored-by: Bill Kristiansen <billkris at microsoft.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>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>

---

 meson.build                                        |    1 +
 meson_options.txt                                  |    2 +-
 src/gallium/drivers/d3d12/d3d12_batch.cpp          |  256 +++
 src/gallium/drivers/d3d12/d3d12_batch.h            |   88 +
 src/gallium/drivers/d3d12/d3d12_blit.cpp           |  975 ++++++++++
 src/gallium/drivers/d3d12/d3d12_blit.h             |   43 +
 src/gallium/drivers/d3d12/d3d12_bufmgr.cpp         |  333 ++++
 src/gallium/drivers/d3d12/d3d12_bufmgr.h           |  121 ++
 src/gallium/drivers/d3d12/d3d12_compiler.cpp       | 1396 +++++++++++++
 src/gallium/drivers/d3d12/d3d12_compiler.h         |  208 ++
 src/gallium/drivers/d3d12/d3d12_context.cpp        | 2052 ++++++++++++++++++++
 src/gallium/drivers/d3d12/d3d12_context.h          |  334 ++++
 src/gallium/drivers/d3d12/d3d12_debug.h            |   48 +
 .../drivers/d3d12/d3d12_descriptor_pool.cpp        |  246 +++
 src/gallium/drivers/d3d12/d3d12_descriptor_pool.h  |   98 +
 src/gallium/drivers/d3d12/d3d12_draw.cpp           |  723 +++++++
 src/gallium/drivers/d3d12/d3d12_fence.cpp          |   93 +
 src/gallium/drivers/d3d12/d3d12_fence.h            |   60 +
 src/gallium/drivers/d3d12/d3d12_format.c           |  298 +++
 src/gallium/drivers/d3d12/d3d12_format.h           |   66 +
 src/gallium/drivers/d3d12/d3d12_gs_variant.cpp     |  516 +++++
 .../d3d12/d3d12_lower_int_cubemap_to_array.c       |  273 +++
 .../drivers/d3d12/d3d12_lower_point_sprite.c       |  307 +++
 src/gallium/drivers/d3d12/d3d12_nir_lower_texcmp.c |  150 ++
 src/gallium/drivers/d3d12/d3d12_nir_lower_texcmp.h |   48 +
 .../d3d12/d3d12_nir_lower_vs_vertex_conversion.c   |  159 ++
 src/gallium/drivers/d3d12/d3d12_nir_passes.c       |  998 ++++++++++
 src/gallium/drivers/d3d12/d3d12_nir_passes.h       |   98 +
 src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp |  381 ++++
 src/gallium/drivers/d3d12/d3d12_pipeline_state.h   |  100 +
 src/gallium/drivers/d3d12/d3d12_public.h           |   41 +
 src/gallium/drivers/d3d12/d3d12_query.cpp          |  524 +++++
 src/gallium/drivers/d3d12/d3d12_query.h            |   38 +
 src/gallium/drivers/d3d12/d3d12_resource.cpp       |  999 ++++++++++
 src/gallium/drivers/d3d12/d3d12_resource.h         |  118 ++
 src/gallium/drivers/d3d12/d3d12_root_signature.cpp |  255 +++
 src/gallium/drivers/d3d12/d3d12_root_signature.h   |   48 +
 src/gallium/drivers/d3d12/d3d12_screen.cpp         |  970 +++++++++
 src/gallium/drivers/d3d12/d3d12_screen.h           |   71 +
 src/gallium/drivers/d3d12/d3d12_surface.cpp        |  365 ++++
 src/gallium/drivers/d3d12/d3d12_surface.h          |   69 +
 src/gallium/drivers/d3d12/meson.build              |   57 +
 src/gallium/meson.build                            |    7 +-
 src/gallium/targets/graw-gdi/meson.build           |    2 +-
 src/gallium/targets/libgl-gdi/libgl_gdi.c          |   20 +
 src/gallium/targets/libgl-gdi/meson.build          |    1 +
 src/meson.build                                    |    3 +
 47 files changed, 14055 insertions(+), 4 deletions(-)

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


More information about the mesa-commit mailing list