[4/5] WineD3D: SRGB write correction emulation

Stefan Dösinger stefan at codeweavers.com
Sat Sep 22 07:59:32 CDT 2007


This patch adds emulation for srgb write correction using pixel shaders. This 
fixes the hl2 darkness "regression" after the srgb read correction 
implementation. There is a GLX extension for srgb writing, but since this 
extension also requires SRGB blending features(which d3d9 does not have), it 
is limited to geforce 8 cards only. For earlier cards we need something else.

The problem with the shader is that it adds a lot of extra code to the shader 
which would have dedicated silicon on the chip, and it does not work with the 
fixed function pipeline as long as we do not have an replacement shader for 
the fragment pipeline.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-WineD3D-SRGB-write-correction-emulation.patch
Type: text/x-diff
Size: 19980 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070922/4758e465/attachment.patch 


More information about the wine-patches mailing list