Stefan Dösinger : wined3d: Add extension information to the states.

Alexandre Julliard julliard at winehq.org
Thu Jul 17 06:38:09 CDT 2008


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sat Jul  5 15:04:16 2008 -0500

wined3d: Add extension information to the states.

This patch adds a new field to the state templates. If this extension
field is != 0, then the line is only applied to the final state table
if the extension is supported. Once a line is applied to the final
table, all further templates for this state from the same pipeline
part are ignored. This allows removing some extension checks from the
state handlers, which cleans them up and saves a few CPU cycles when
applying the states.

---

 dlls/wined3d/ati_fragment_shader.c   |  228 +++---
 dlls/wined3d/directx.c               |    2 +-
 dlls/wined3d/nvidia_texture_shader.c |  464 ++++++------
 dlls/wined3d/state.c                 | 1349 +++++++++++++++++-----------------
 dlls/wined3d/wined3d_private.h       |    2 +
 5 files changed, 1037 insertions(+), 1008 deletions(-)

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



More information about the wine-cvs mailing list