Stefan Dösinger : wined3d: Add the ability to duplicate GL pixel shaders.

Alexandre Julliard julliard at winehq.org
Tue Nov 25 07:21:45 CST 2008


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Mon Nov 24 11:55:50 2008 +0100

wined3d: Add the ability to duplicate GL pixel shaders.

Some stateblock parameters have to be compiled into the GL pixel
shader code, like lines for pixelformat fixups. This leads to problems
when applications switch those settings, requiring a recompilation of
the shader. This patch enables wined3d to have multiple GL shaders for
a D3D shader(pixel shaders only so far) to handle this more
efficiently.

---

 dlls/wined3d/arb_program_shader.c |  116 +++++++++----------------------
 dlls/wined3d/baseshader.c         |    3 +-
 dlls/wined3d/glsl_shader.c        |  111 ++++++++++++-------------------
 dlls/wined3d/pixelshader.c        |  134 ++++++++++++------------------------
 dlls/wined3d/wined3d_private.h    |   21 +++---
 5 files changed, 134 insertions(+), 251 deletions(-)

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



More information about the wine-cvs mailing list