[PATCH 1/1] wined3d: Make 8bpp a valid depth in EnumAdapterModes

Vitaly Budovski vbudovski at gmail.com
Sat Mar 31 01:12:53 CDT 2007


Chris Robinson wrote:
> On Friday 30 March 2007 08:11:54 pm Vitaly Budovski wrote:
>   
>> Make 8bpp a valid depth in EnumAdapterModes. This allows Age of Empires to
>> start.
>> ---
>>   dlls/wined3d/directx.c |    9 +++++++--
>>   1 files changed, 7 insertions(+), 2 deletions(-)
>>     
>
>
> This causes the d3d8 device test to fail for me:
> device.c:755: Test failed: Unexpected display mode returned for mode 42: 0x29
> ...all the way through to...
> device.c:755: Test failed: Unexpected display mode returned for mode 83: 0x29
>
> D3D8 only supports 32-bit X8R8G8B8 and 16-bit R5G6B5 modes as far as Windows 
> testing has shown, and passing WINED3DFMT_UNKNOWN to WineD3D for mode 
> enumeration makes it work on D3D8 modes only.
>
> You'll probably need to wait for Stefan or Henri to respond to figure out what 
> to do. Though, it appears DDraw can be patched to do a second enumeration 
> loop with WINED3DFORMAT_P8 if the first was with WINED3DFMT_UNKNOWN.. whether 
> or not this is acceptable, I'm not sure, but it's an idea I just had.
>
>
>
>   

I haven't really tested this patch much and I don't expect it to be 
applied. There was just a regression that prevented AOE from starting 
due to it not finding an 8bpp mode. The regression was caused by this 
patch: 
http://www.winehq.com/pipermail/wine-cvs/2007-February/030394.html BTW.



More information about the wine-devel mailing list