wined3d: Revert "WineD3D: use CMP instead of SLT and SGE in sRGB correction".
commit050735be79eb37fe057e14429a79ee9cf2235e77
authorStefan Dösinger <stefan@codeweavers.com>
Tue, 26 May 2009 14:01:00 +0000 (26 16:01 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 1 Jun 2009 14:16:00 +0000 (1 16:16 +0200)
treeac3955b43434ced7cb8447a6e218ce7c7073902c
parent8665ee5906578e6cfae52306b37db478f3bb9109
wined3d: Revert "WineD3D: use CMP instead of SLT and SGE in sRGB correction".

This reverts patch ba35760f9fd5fd90a0fa34077862f04513d1ab16.

The original patch did not achive its goal, because CMP is a macro that is
expanded to SLT, SGE, MUL, MAD, at least on nvidia hardware. To make matters
worse, it uses a temporary register, and the assembler usually is not clever
enough to find a free temporary from the shader code. If we generate the code
outselves we can pick one of our temps for this job.
dlls/wined3d/arb_program_shader.c