• Stefan Dösinger's avatar
    wined3d: Avoid the TMP_COLOR mov in some cases. · d8e219be
    Stefan Dösinger authored
    Many 2.0 and 3.0 shaders end with a "mov oC0, rx". If sRGB writing is enabled,
    the ARB backend writes to a TMP_COLOR temporary, and at the end of the shader
    writes the sRGB corrected color to result.color. If oC0 is not partially
    rewritten after the mov, we can ignore the mov, not declare TMP_COLOR at all,
    and just use the rx register as input for the sRGB correction code. This saves
    a temporary and an instruction.
    d8e219be
wined3d_private.h 103 KB