wined3d: Add extension information to the states.
commit35f33ef4091ec81995bc8bb340ee24932d709548
authorStefan Dösinger <stefan@codeweavers.com>
Sat, 5 Jul 2008 20:04:16 +0000 (5 15:04 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 17 Jul 2008 09:44:08 +0000 (17 11:44 +0200)
tree0de231f415ac39acda0c5134dd04448f981b4f25
parent3fb196fb57fadc94979f8354e2603a38d5b08708
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
dlls/wined3d/directx.c
dlls/wined3d/nvidia_texture_shader.c
dlls/wined3d/state.c
dlls/wined3d/wined3d_private.h