Mesa (main): winsys/d3d12: Populate winsys handle format

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 19 23:20:52 UTC 2021


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

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Fri Sep 24 08:41:53 2021 -0700

winsys/d3d12: Populate winsys handle format

All other winsys handle users do so, and a future commit will
start caring about it.

Reviewed-by: Bill Kristiansen <billkris at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13054>

---

 src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp b/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
index e9a343b90e2..717af584633 100644
--- a/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
+++ b/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
@@ -188,6 +188,7 @@ d3d12_wgl_framebuffer_get_resource(struct stw_winsys_framebuffer *pframebuffer,
    struct winsys_handle handle;
    memset(&handle, 0, sizeof(handle));
    handle.type = WINSYS_HANDLE_TYPE_D3D12_RES;
+   handle.format = framebuffer->pformat;
    handle.com_obj = res;
 
    D3D12_RESOURCE_DESC res_desc = res->GetDesc();



More information about the mesa-commit mailing list