WineD3D: shader detection improvements 2/3

Roderick Colenbrander thunderbird2k at gmx.net
Sat Oct 27 16:34:28 CDT 2007


Hi,

This patch improves the ps2.0 detection when GLSL is used. For nvidia hardware we already had code using the NV_fragment_program version. Now we detect ps2.0 using the maximum number of shader instructions that can be handled in hardware. PS2.0 requires this number to be 96 and some ati/nvidia boards offer upto 512 (ps2.0b/ps2.0a).

It should result in R300/R400 ati boards to report pixel shader 2.0 instead of 3.0 which will should result in more performance. (Soon this will allow us to default to glsl)

Regards,
Roderick Colenbrander
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-proper-PS2.0-detection-for-older-cards-with-GLSL.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071027/cc213300/attachment.patch 


More information about the wine-patches mailing list