Matteo Bruni : d3d11: Implement GenerateMips().
Alexandre Julliard
julliard at winehq.org
Tue Dec 5 15:02:14 CST 2017
Module: wine
Branch: master
Commit: bb3b55ce22f96d443c2053f6b1eb24e087ca1377
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb3b55ce22f96d443c2053f6b1eb24e087ca1377
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Mon Dec 4 18:36:46 2017 +0100
d3d11: Implement GenerateMips().
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d11/device.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 7a8f3df..5281792 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -1135,7 +1135,13 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_ClearDepthStencilView(ID3D
static void STDMETHODCALLTYPE d3d11_immediate_context_GenerateMips(ID3D11DeviceContext *iface,
ID3D11ShaderResourceView *view)
{
- FIXME("iface %p, view %p stub!\n", iface, view);
+ struct d3d_shader_resource_view *srv = unsafe_impl_from_ID3D11ShaderResourceView(view);
+
+ TRACE("iface %p, view %p.\n", iface, view);
+
+ wined3d_mutex_lock();
+ wined3d_shader_resource_view_generate_mipmaps(srv->wined3d_view);
+ wined3d_mutex_unlock();
}
static void STDMETHODCALLTYPE d3d11_immediate_context_SetResourceMinLOD(ID3D11DeviceContext *iface,
@@ -4193,9 +4199,15 @@ static void STDMETHODCALLTYPE d3d10_device_ClearDepthStencilView(ID3D10Device1 *
}
static void STDMETHODCALLTYPE d3d10_device_GenerateMips(ID3D10Device1 *iface,
- ID3D10ShaderResourceView *shader_resource_view)
+ ID3D10ShaderResourceView *view)
{
- FIXME("iface %p, shader_resource_view %p stub!\n", iface, shader_resource_view);
+ struct d3d_shader_resource_view *srv = unsafe_impl_from_ID3D10ShaderResourceView(view);
+
+ TRACE("iface %p, view %p.\n", iface, view);
+
+ wined3d_mutex_lock();
+ wined3d_shader_resource_view_generate_mipmaps(srv->wined3d_view);
+ wined3d_mutex_unlock();
}
static void STDMETHODCALLTYPE d3d10_device_ResolveSubresource(ID3D10Device1 *iface,
More information about the wine-cvs
mailing list