Module: wine
Branch: master
Commit: 5ab5202e0f991cf94b2be5b197af864ff5188f65
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ab5202e0f991cf94b2be5b19…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Tue Mar 18 19:39:26 2008 +0100
wined3d: Set shader specific caps in the shader backend.
The whole control structures in directx.c get terribly confusing with
the various codepaths for texturing and different shader
implementations. It is also hard to reflect the shader model
decisions this way too. This patch moves the shader specific parts of
the caps code into the shader backend where we can set our caps
dependent of the shader model decisions and without complex caps flag
checks.
---
dlls/wined3d/arb_program_shader.c | 5 +
dlls/wined3d/baseshader.c | 199 +++++++++++++++++++++++++++++++
dlls/wined3d/directx.c | 236 ++++++-------------------------------
dlls/wined3d/glsl_shader.c | 5 +
dlls/wined3d/wined3d_private.h | 26 ++++
5 files changed, 269 insertions(+), 202 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=5ab5202e0f991cf94b2be…
Module: wine
Branch: master
Commit: a66fb40d834e8f9b2d1502300e13376722c95bbe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a66fb40d834e8f9b2d1502300…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Tue Mar 18 19:19:16 2008 +0100
wined3d: Move shader generation into the shader backend.
Generating the shader ID and parts of the shader prolog and epilog was
done by the common vertexshader.c / pixelshader.c, which is ugly.
This patch doesn't get rid of all the uglyness, somewhen we'll still
have to sort out the relationship of [arb|glsl]_generate_shader and
[arb|glsl]_generate_declarations.
---
dlls/wined3d/arb_program_shader.c | 171 +++++++++++++++++++++++++++++++++++++
dlls/wined3d/baseshader.c | 8 ++
dlls/wined3d/glsl_shader.c | 143 +++++++++++++++++++++++++++++++
dlls/wined3d/pixelshader.c | 171 +------------------------------------
dlls/wined3d/vertexshader.c | 126 +---------------------------
dlls/wined3d/wined3d_private.h | 18 ++--
6 files changed, 336 insertions(+), 301 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=a66fb40d834e8f9b2d150…