wined3d: Improve color fixups in atifs shaders.
commit92fee8c04f94893c36543230f45cb38c4fbd486e
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 23 Mar 2015 17:59:07 +0000 (23 18:59 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Mar 2015 11:05:46 +0000 (24 20:05 +0900)
treebd6675162df31315c6a539d228a832861e3bc87c
parentbaf32ced7428a71d7b59be006b47d6e9eb7f33fe
wined3d: Improve color fixups in atifs shaders.

The abilities of this hardware is too limited to support generic sign /
swizzle fixups. A generic handler would consume 4 of the 8 available
color instruction slots and 2 alpha instruction slots.

The bump mapping handler code has its own way of handling the color
fixups. It merges the fixup into the perturbation calculation without
requiring extra shader instructions. In theory this is possible for the
majority of d3d texture ops as well, but I don't think this is worth the
effort. I expect that this code will only be used for the ddraw signed
format test in practice.
dlls/wined3d/ati_fragment_shader.c