From fd71421ebe7b83544d521cd39d0fd8b71605c2cd Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Tue, 18 Mar 2008 09:45:35 +0100 Subject: [PATCH] wined3d: Report software processing in CheckDeviceFormat. --- dlls/wined3d/directx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index f3d7b259ab..bd861a6a56 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2258,6 +2258,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt } } + /* Always report software processing */ + if(Usage & WINED3DUSAGE_SOFTWAREPROCESSING) + UsageCaps |= WINED3DUSAGE_SOFTWAREPROCESSING; + /* Check QUERY_FILTER support */ if(Usage & WINED3DUSAGE_QUERY_FILTER) { if(CheckFilterCapability(CheckFormat)) { @@ -2350,6 +2354,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt } } + /* Always report software processing */ + if(Usage & WINED3DUSAGE_SOFTWAREPROCESSING) + UsageCaps |= WINED3DUSAGE_SOFTWAREPROCESSING; + /* Check QUERY_FILTER support */ if(Usage & WINED3DUSAGE_QUERY_FILTER) { if(CheckFilterCapability(CheckFormat)) { @@ -2411,6 +2419,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt if(Usage & WINED3DUSAGE_DYNAMIC) UsageCaps |= WINED3DUSAGE_DYNAMIC; + /* Always report software processing */ + if(Usage & WINED3DUSAGE_SOFTWAREPROCESSING) + UsageCaps |= WINED3DUSAGE_SOFTWAREPROCESSING; + /* Check QUERY_FILTER support */ if(Usage & WINED3DUSAGE_QUERY_FILTER) { if(CheckFilterCapability(CheckFormat)) {