d3d10umd: Flush on present

To ensure all submitted commands are visible on screen flush them.
Fixes tri.cpp test with softpipe.

Signed-off-by: Max Ramanouski <max8rr8@gmail.com>
Signed-off-by: Max R <max8rr8@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36769>
This commit is contained in:
Max R 2025-06-02 08:59:28 +03:00 committed by Marge Bot
parent 53b5c759c0
commit d4586224fb

View file

@ -61,6 +61,7 @@ _Present(DXGI_DDI_ARG_PRESENT *pPresentData)
struct Device *device = CastDevice(pPresentData->hDevice);
Resource *pSrcResource = CastResource(pPresentData->hSurfaceToPresent);
device->pipe->flush(device->pipe, NULL, 0);
device->pipe->screen->flush_frontbuffer(device->pipe->screen, device->pipe,
pSrcResource->resource, 0, 0, pPresentData->pDXGIContext, 0, NULL);