Mesa (main): dzn: port to d3d12 c-api

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 19 16:29:45 UTC 2022


Module: Mesa
Branch: main
Commit: 4903a7c0511c2da36cf9e1c5191b61fb4c82b127
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4903a7c0511c2da36cf9e1c5191b61fb4c82b127

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Mar 25 17:08:50 2022 +0100

dzn: port to d3d12 c-api

Using the vulkan-helpers from C++ code has turned out to have a lot of
friction, because no other driver uses C++ for this.

So let's bite the bullet and call the D3D12 C-API instead. The C-API
wasn't really around when we started out, but it's there now.

This is still far from ideal; we should really create some wrapping
macros to generate the extremely verbose COM calls.

Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15816>

---

 src/microsoft/vulkan/dzn_cmd_buffer.cpp     | 437 +++++++++++++++-------------
 src/microsoft/vulkan/dzn_descriptor_set.cpp |  58 ++--
 src/microsoft/vulkan/dzn_device.cpp         | 162 ++++++-----
 src/microsoft/vulkan/dzn_image.cpp          |  15 +-
 src/microsoft/vulkan/dzn_meta.cpp           |  36 ++-
 src/microsoft/vulkan/dzn_nir.h              |   3 +
 src/microsoft/vulkan/dzn_pipeline.cpp       |  34 ++-
 src/microsoft/vulkan/dzn_private.h          |   6 +-
 src/microsoft/vulkan/dzn_query.cpp          |  62 ++--
 src/microsoft/vulkan/dzn_sync.cpp           |  31 +-
 src/microsoft/vulkan/dzn_util.cpp           |  23 +-
 11 files changed, 477 insertions(+), 390 deletions(-)

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


More information about the mesa-commit mailing list