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
68dec9d1
Commit
68dec9d1
authored
Jul 01, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement the state merger and start to use it.
parent
98faed8f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
directx.c
dlls/wined3d/directx.c
+3
-1
state.c
dlls/wined3d/state.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+18
-3
No files found.
dlls/wined3d/directx.c
View file @
68dec9d1
...
...
@@ -3446,7 +3446,9 @@ static HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter,
select_shader_mode
(
&
GLINFO_LOCATION
,
DeviceType
,
&
object
->
ps_selected_mode
,
&
object
->
vs_selected_mode
);
object
->
shader_backend
=
select_shader_backend
(
Adapter
,
DeviceType
);
compile_state_table
(
object
->
StateTable
,
object
->
shader_backend
->
StateTable_remove
);
compile_state_table
(
object
->
StateTable
,
object
->
multistate_funcs
,
NULL
,
NULL
,
misc_state_template
,
object
->
shader_backend
->
StateTable_remove
);
/* Prefer the vtable with functions optimized for single dirtifyable objects if the shader
* model can deal with that. It is essentially the same, just with adjusted
...
...
dlls/wined3d/state.c
View file @
68dec9d1
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
68dec9d1
...
...
@@ -582,13 +582,26 @@ typedef void (*APPLYSTATEFUNC)(DWORD state, IWineD3DStateBlockImpl *stateblock,
struct
StateEntry
{
DWORD
representative
;
APPLYSTATEFUNC
apply
;
DWORD
representative
;
APPLYSTATEFUNC
apply
;
};
struct
StateEntryTemplate
{
DWORD
state
;
struct
StateEntry
content
;
};
extern
const
struct
StateEntryTemplate
misc_state_template
[];
/* "Base" state table */
extern
const
struct
StateEntry
FFPStateTable
[];
void
compile_state_table
(
struct
StateEntry
*
StateTable
,
const
struct
StateEntry
*
temptable
);
void
compile_state_table
(
struct
StateEntry
*
StateTable
,
APPLYSTATEFUNC
**
dev_multistate_funcs
,
const
struct
StateEntryTemplate
*
vertex
,
const
struct
StateEntryTemplate
*
fragment
,
const
struct
StateEntryTemplate
*
misc
,
const
struct
StateEntry
*
temptable
/* TODO: Remove this */
);
/* The new context manager that should deal with onscreen and offscreen rendering */
struct
WineD3DContext
{
...
...
@@ -814,6 +827,8 @@ struct IWineD3DDeviceImpl
hash_table_t
*
glsl_program_lookup
;
void
*
shader_priv
;
struct
StateEntry
StateTable
[
STATE_HIGHEST
+
1
];
/* Array of functions for states which are handled by more than one pipeline part */
APPLYSTATEFUNC
*
multistate_funcs
[
STATE_HIGHEST
+
1
];
/* To store */
BOOL
view_ident
;
/* true iff view matrix is identity */
...
...
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