Chip Davis : wined3d: Introduce wined3d_device_flush().
Alexandre Julliard
julliard at winehq.org
Wed May 20 15:35:40 CDT 2020
Module: wine
Branch: master
Commit: 5d437b5ccd6ec4014e58f3fef6d5a2b639a18af9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5d437b5ccd6ec4014e58f3fef6d5a2b639a18af9
Author: Chip Davis <cdavis at codeweavers.com>
Date: Thu May 21 00:12:41 2020 +0430
wined3d: Introduce wined3d_device_flush().
Signed-off-by: Chip Davis <cdavis at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 7 +++++++
dlls/wined3d/wined3d.spec | 1 +
include/wine/wined3d.h | 1 +
3 files changed, 9 insertions(+)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6f7ab23e60..450980719e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5106,6 +5106,13 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
}
}
+void CDECL wined3d_device_flush(struct wined3d_device *device)
+{
+ TRACE("device %p.\n", device);
+
+ wined3d_cs_emit_flush(device->cs);
+}
+
static void update_swapchain_flags(struct wined3d_texture *texture)
{
unsigned int flags = texture->swapchain->state.desc.flags;
diff --git a/dlls/wined3d/wined3d.spec b/dlls/wined3d/wined3d.spec
index e7d08914cd..f4a648cac8 100644
--- a/dlls/wined3d/wined3d.spec
+++ b/dlls/wined3d/wined3d.spec
@@ -53,6 +53,7 @@
@ cdecl wined3d_device_draw_primitive_instanced_indirect(ptr ptr long)
@ cdecl wined3d_device_end_scene(ptr)
@ cdecl wined3d_device_evict_managed_resources(ptr)
+@ cdecl wined3d_device_flush(ptr)
@ cdecl wined3d_device_get_available_texture_mem(ptr)
@ cdecl wined3d_device_get_blend_state(ptr ptr)
@ cdecl wined3d_device_get_clip_status(ptr ptr)
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 3b52098527..5450b4d211 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2334,6 +2334,7 @@ void __cdecl wined3d_device_draw_primitive_instanced_indirect(struct wined3d_dev
struct wined3d_buffer *buffer, unsigned int offset);
HRESULT __cdecl wined3d_device_end_scene(struct wined3d_device *device);
void __cdecl wined3d_device_evict_managed_resources(struct wined3d_device *device);
+void __cdecl wined3d_device_flush(struct wined3d_device *device);
UINT __cdecl wined3d_device_get_available_texture_mem(const struct wined3d_device *device);
struct wined3d_blend_state * __cdecl wined3d_device_get_blend_state(const struct wined3d_device *device,
struct wined3d_color *blend_factor);
More information about the wine-cvs
mailing list