Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
141f31f0
Commit
141f31f0
authored
Jul 02, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move stream source and vshader to misc and vertex pipeline tables.
parent
6675374d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
directx.c
dlls/wined3d/directx.c
+1
-1
state.c
dlls/wined3d/state.c
+12
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/directx.c
View file @
141f31f0
...
...
@@ -3447,7 +3447,7 @@ static HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter,
object
->
shader_backend
=
select_shader_backend
(
Adapter
,
DeviceType
);
compile_state_table
(
object
->
StateTable
,
object
->
multistate_funcs
,
NULL
,
NULL
,
misc_state_template
,
ffp_vertexstate_template
,
NULL
,
misc_state_template
,
object
->
shader_backend
->
StateTable_remove
);
/* Prefer the vtable with functions optimized for single dirtifyable objects if the shader
...
...
dlls/wined3d/state.c
View file @
141f31f0
...
...
@@ -3381,7 +3381,7 @@ static inline void drawPrimitiveTraceDataLocations(
return
;
}
static
void
handleStreams
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
streamsrc
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
BOOL
fixup
=
FALSE
;
WineDirect3DVertexStridedData
*
dataLocations
=
&
device
->
strided_streams
;
...
...
@@ -3478,8 +3478,6 @@ static void vertexdeclaration(DWORD state, IWineD3DStateBlockImpl *stateblock, W
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
BOOL
wasrhw
=
context
->
last_was_rhw
;
handleStreams
(
state
,
stateblock
,
context
);
/* Shaders can be implemented using ARB_PROGRAM, GLSL, or software -
* here simply check whether a shader was set, or the user disabled shaders
*/
...
...
@@ -4837,10 +4835,10 @@ const struct StateEntry FFPStateTable[] =
{
/*510, WINED3DTS_WORLDMATRIX(254) */
STATE_TRANSFORM
(
WINED3DTS_WORLDMATRIX
(
254
)),
transform_worldex
},
{
/*511, WINED3DTS_WORLDMATRIX(255) */
STATE_TRANSFORM
(
WINED3DTS_WORLDMATRIX
(
255
)),
transform_worldex
},
/* Various Vertex states follow */
{
/* , STATE_STREAMSRC */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_STREAMSRC */
STATE_VDECL
,
NULL
},
{
/* , STATE_INDEXBUFFER */
STATE_INDEXBUFFER
,
indexbuffer
},
{
/* , STATE_VDECL */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_VSHADER */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_VDECL */
STATE_VDECL
,
NULL
},
{
/* , STATE_VSHADER */
STATE_VDECL
,
NULL
},
{
/* , STATE_VIEWPORT */
STATE_VIEWPORT
,
viewport
},
{
/* , STATE_VERTEXSHADERCONSTANT */
STATE_VERTEXSHADERCONSTANT
,
shaderconstant
},
{
/* , STATE_PIXELSHADERCONSTANT */
STATE_VERTEXSHADERCONSTANT
,
shaderconstant
},
...
...
@@ -4904,6 +4902,14 @@ const struct StateEntryTemplate misc_state_template[] = {
{
STATE_RENDER
(
WINED3DRS_DESTBLENDALPHA
),
{
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
}},
{
STATE_RENDER
(
WINED3DRS_DESTBLENDALPHA
),
{
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
}},
{
STATE_RENDER
(
WINED3DRS_BLENDOPALPHA
),
{
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
}},
{
STATE_STREAMSRC
,
{
STATE_VDECL
,
streamsrc
}},
{
STATE_VDECL
,
{
STATE_VDECL
,
streamsrc
}},
{
0
/* Terminate */
,
{
0
,
0
}},
};
const
struct
StateEntryTemplate
ffp_vertexstate_template
[]
=
{
{
STATE_VDECL
,
{
STATE_VDECL
,
vertexdeclaration
}},
{
STATE_VSHADER
,
{
STATE_VDECL
,
vertexdeclaration
}},
{
0
/* Terminate */
,
{
0
,
0
}},
};
...
...
dlls/wined3d/wined3d_private.h
View file @
141f31f0
...
...
@@ -593,6 +593,7 @@ struct StateEntryTemplate
};
extern
const
struct
StateEntryTemplate
misc_state_template
[];
extern
const
struct
StateEntryTemplate
ffp_vertexstate_template
[];
/* "Base" state table */
extern
const
struct
StateEntry
FFPStateTable
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment