You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against 1d178982ae5a73b18f367026c8689b56789c39fd.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 2a1f587297f97e8c8f3d1327f2dfd3f5f1fd2300 Mon Sep 17 00:00:00 2001
|
||||
From 0b292f9ebd14638de48420184e065ce7ec9c4126 Mon Sep 17 00:00:00 2001
|
||||
From: Zebediah Figura <z.figura12@gmail.com>
|
||||
Date: Sat, 22 May 2021 18:05:40 -0500
|
||||
Subject: [PATCH] d3d11: Introduce a COM interface to retrieve the
|
||||
@@ -11,18 +11,18 @@ Subject: [PATCH] d3d11: Introduce a COM interface to retrieve the
|
||||
3 files changed, 112 insertions(+)
|
||||
|
||||
diff --git a/dlls/d3d11/d3d11_private.h b/dlls/d3d11/d3d11_private.h
|
||||
index f4c66ca4ce9..8dc8ecc88db 100644
|
||||
index efe26551258..6079a8ad2db 100644
|
||||
--- a/dlls/d3d11/d3d11_private.h
|
||||
+++ b/dlls/d3d11/d3d11_private.h
|
||||
@@ -545,6 +545,7 @@ struct d3d11_device_context
|
||||
{
|
||||
@@ -546,6 +546,7 @@ struct d3d11_device_context
|
||||
ID3D11DeviceContext1 ID3D11DeviceContext1_iface;
|
||||
ID3D11Multithread ID3D11Multithread_iface;
|
||||
ID3DUserDefinedAnnotation ID3DUserDefinedAnnotation_iface;
|
||||
+ IWineD3DDeviceContext IWineD3DDeviceContext_iface;
|
||||
LONG refcount;
|
||||
|
||||
D3D11_DEVICE_CONTEXT_TYPE type;
|
||||
@@ -561,6 +562,7 @@ struct d3d_device
|
||||
@@ -562,6 +563,7 @@ struct d3d_device
|
||||
ID3D11Device2 ID3D11Device2_iface;
|
||||
ID3D10Device1 ID3D10Device1_iface;
|
||||
ID3D10Multithread ID3D10Multithread_iface;
|
||||
@@ -31,10 +31,10 @@ index f4c66ca4ce9..8dc8ecc88db 100644
|
||||
IUnknown *outer_unk;
|
||||
LONG refcount;
|
||||
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
|
||||
index b5b97c83aba..626e9d47e81 100644
|
||||
index f0cbb1741ab..82419b2a5bc 100644
|
||||
--- a/dlls/d3d11/device.c
|
||||
+++ b/dlls/d3d11/device.c
|
||||
@@ -3223,11 +3223,67 @@ static const struct ID3D11MultithreadVtbl d3d11_multithread_vtbl =
|
||||
@@ -3191,6 +3191,61 @@ static const struct ID3D11MultithreadVtbl d3d11_multithread_vtbl =
|
||||
d3d11_multithread_GetMultithreadProtected,
|
||||
};
|
||||
|
||||
@@ -93,16 +93,18 @@ index b5b97c83aba..626e9d47e81 100644
|
||||
+ context_d3d_device_context_get_wined3d_device_context,
|
||||
+};
|
||||
+
|
||||
static void d3d11_device_context_init(struct d3d11_device_context *context, struct d3d_device *device,
|
||||
D3D11_DEVICE_CONTEXT_TYPE type)
|
||||
{
|
||||
/* ID3DUserDefinedAnnotation methods */
|
||||
|
||||
static inline struct d3d11_device_context *impl_from_ID3DUserDefinedAnnotation(ID3DUserDefinedAnnotation *iface)
|
||||
@@ -3271,6 +3326,7 @@ static void d3d11_device_context_init(struct d3d11_device_context *context, stru
|
||||
context->ID3D11DeviceContext1_iface.lpVtbl = &d3d11_device_context_vtbl;
|
||||
context->ID3D11Multithread_iface.lpVtbl = &d3d11_multithread_vtbl;
|
||||
context->ID3DUserDefinedAnnotation_iface.lpVtbl = &d3d11_user_defined_annotation_vtbl;
|
||||
+ context->IWineD3DDeviceContext_iface.lpVtbl = &context_d3d_device_context_vtbl;
|
||||
context->refcount = 1;
|
||||
context->type = type;
|
||||
|
||||
@@ -6631,6 +6687,49 @@ static const struct ID3D10MultithreadVtbl d3d10_multithread_vtbl =
|
||||
@@ -6695,6 +6751,49 @@ static const struct ID3D10MultithreadVtbl d3d10_multithread_vtbl =
|
||||
d3d10_multithread_GetMultithreadProtected,
|
||||
};
|
||||
|
||||
@@ -152,7 +154,7 @@ index b5b97c83aba..626e9d47e81 100644
|
||||
/* IWineDXGIDeviceParent IUnknown methods */
|
||||
|
||||
static inline struct d3d_device *device_from_dxgi_device_parent(IWineDXGIDeviceParent *iface)
|
||||
@@ -6834,6 +6933,7 @@ void d3d_device_init(struct d3d_device *device, void *outer_unknown)
|
||||
@@ -6898,6 +6997,7 @@ void d3d_device_init(struct d3d_device *device, void *outer_unknown)
|
||||
device->ID3D11Device2_iface.lpVtbl = &d3d11_device_vtbl;
|
||||
device->ID3D10Device1_iface.lpVtbl = &d3d10_device1_vtbl;
|
||||
device->ID3D10Multithread_iface.lpVtbl = &d3d10_multithread_vtbl;
|
||||
@@ -179,5 +181,5 @@ index 83012047ea7..3c910376cc7 100644
|
||||
+ struct wined3d_device_context *get_wined3d_device_context();
|
||||
+}
|
||||
--
|
||||
2.30.2
|
||||
2.34.1
|
||||
|
||||
|
Reference in New Issue
Block a user