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@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13054>
This commit is contained in:
Jesse Natalie 2021-09-24 08:41:53 -07:00 committed by Marge Bot
parent 2771fd4a3f
commit 31c7a04b47

View file

@ -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();