Stefan Dösinger : wined3d: Separate Tx tempregs from Tx varyings in ARB.

Alexandre Julliard julliard at winehq.org
Wed May 13 10:19:45 CDT 2009


Module: wine
Branch: master
Commit: 90526ce7617bf5da14a0b824046ceda42c77666c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=90526ce7617bf5da14a0b824046ceda42c77666c

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri May  8 17:14:56 2009 +0200

wined3d: Separate Tx tempregs from Tx varyings in ARB.

ps_1_3 uses Tx to pass in texture coordinates, but also as temporary
registers. ps_1_4 and ps_2_0 only use them for texture coordinates. This patch
gets rid of the Tx = fragment.texcoord[x] assign in all shader versions, and
doesn't even declare Tx in ps_1_4 and ps_2_0.

The <=ps_1_3 instructions know which kind of input they expect from the Tx
register, so the instruction handlers now know if they have to read the
tempreg Tx or the varying fragment.texcoord[x].

---

 dlls/wined3d/arb_program_shader.c |  100 ++++++++++++++++++++++--------------
 1 files changed, 61 insertions(+), 39 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=90526ce7617bf5da14a0b824046ceda42c77666c



More information about the wine-cvs mailing list