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
e18629be
Commit
e18629be
authored
Dec 08, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass the shader version to shader_skip_unrecognized().
parent
6e677775
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
baseshader.c
dlls/wined3d/baseshader.c
+3
-4
No files found.
dlls/wined3d/baseshader.c
View file @
e18629be
...
...
@@ -136,9 +136,8 @@ static inline int shader_skip_opcode(
* Note: This function assumes source or destination token format.
* It will not work with specially-formatted tokens like DEF or DCL,
* but hopefully those would be recognized */
static
int
shader_skip_unrecognized
(
IWineD3DBaseShader
*
iface
,
const
DWORD
*
pToke
n
)
static
int
shader_skip_unrecognized
(
const
DWORD
*
pToken
,
DWORD
shader_versio
n
)
{
DWORD
shader_version
=
((
IWineD3DBaseShaderImpl
*
)
iface
)
->
baseShader
.
hex_version
;
int
tokens_read
=
0
;
int
i
=
0
;
...
...
@@ -878,7 +877,7 @@ void shader_generate_main(IWineD3DBaseShader *iface, SHADER_BUFFER* buffer,
/* Unknown opcode and its parameters */
if
(
NULL
==
curOpcode
)
{
FIXME
(
"Unrecognized opcode: token=0x%08x
\n
"
,
hw_arg
.
opcode_token
);
pToken
+=
shader_skip_unrecognized
(
iface
,
pToken
);
pToken
+=
shader_skip_unrecognized
(
pToken
,
shader_version
);
/* Nothing to do */
}
else
if
(
WINED3DSIO_DCL
==
curOpcode
->
opcode
||
...
...
@@ -1008,7 +1007,7 @@ void shader_trace_init(
if
(
NULL
==
curOpcode
)
{
int
tokens_read
;
FIXME
(
"Unrecognized opcode: token=0x%08x
\n
"
,
opcode_token
);
tokens_read
=
shader_skip_unrecognized
(
iface
,
pToke
n
);
tokens_read
=
shader_skip_unrecognized
(
pToken
,
This
->
baseShader
.
hex_versio
n
);
pToken
+=
tokens_read
;
len
+=
tokens_read
;
...
...
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