summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/d3d12
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16d3d12: Refactor screen to abstract DXGI detailsJesse Natalie2-3/+3
The next commit will add an alternative that can be dropped in instead. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7937>
2020-12-16d3d12: Use DirectX-Headers wrap for d3d12.hJesse Natalie2-1/+2
This does 2 things for us: 1. Allows us to compile-time depend on any features from new headers, instead of having to conditionally compile based on Windows SDK version. 2. Allows us to reference d3d12.h when compiling for non-Windows. Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7937>
2020-12-14gallium: Add optional pipe_context to flush_frontbufferJesse Natalie2-1/+4
It's hooked up in all the pipe wrapper drivers, and all the frontends except a couple places in glx/xlib. This enables a more efficient path for drivers which use swrast's Present, but hardware rendering (e.g. d3d12, zink). Reviewed-by: Dave Airlie <airlied@redhat.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8045>
2020-11-18winsys/d3d12: Use MakeWindowAssociation to remove DXGI's alt+enter handlingJesse Natalie1-0/+3
Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
2020-11-18d3d12: also reject GDI-supporting pixel-formatsErik Faye-Lund1-1/+2
In theory, it's possible to request a GDI-supporting, double buffered pixel-format, and we're not able to support this using the DXGI swapchains. So let's return NULL here in that case as well. Reviewed-by: Charmaine Lee <charmainel@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
2020-11-18d3d12: Release swapchain buffers before resizing themLouis-Francis Ratté-Boulianne1-2/+17
Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
2020-11-18d3d12: Implement winsys framebufferJesse Natalie4-2/+205
Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
2020-11-18wgl: Add stw_winsys callback to check which PFD flags should be addedJesse Natalie2-0/+10
Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
2020-11-18d3d12: Add D3D12 WGL winsysLouis-Francis Ratté-Boulianne3-0/+132
Add a winsys for code paths common to the libgl-gdi and libgl-d3d12 targets when using the D3D12 gallium driver. Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>