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
8168e184
Commit
8168e184
authored
Sep 26, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add some basic SM4 bytecode dumping code.
parent
c0a83b1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
shader_sm4.c
dlls/wined3d/shader_sm4.c
+11
-0
No files found.
dlls/wined3d/shader_sm4.c
View file @
8168e184
...
...
@@ -22,6 +22,7 @@
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_shader
);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d_bytecode
);
#define WINED3D_SM4_INSTRUCTION_MODIFIER (1 << 31)
...
...
@@ -555,6 +556,16 @@ static void shader_sm4_read_instruction(void *data, const DWORD **ptr, struct wi
opcode
=
opcode_token
&
WINED3D_SM4_OPCODE_MASK
;
len
=
((
opcode_token
&
WINED3D_SM4_INSTRUCTION_LENGTH_MASK
)
>>
WINED3D_SM4_INSTRUCTION_LENGTH_SHIFT
)
-
1
;
if
(
TRACE_ON
(
d3d_bytecode
))
{
TRACE_
(
d3d_bytecode
)(
"[ %08x "
,
opcode_token
);
for
(
i
=
0
;
i
<
len
;
++
i
)
{
TRACE_
(
d3d_bytecode
)(
"%08x "
,
(
*
ptr
)[
i
]);
}
TRACE_
(
d3d_bytecode
)(
"]
\n
"
);
}
if
(
!
(
opcode_info
=
get_opcode_info
(
opcode
)))
{
FIXME
(
"Unrecognized opcode %#x, opcode_token 0x%08x.
\n
"
,
opcode
,
opcode_token
);
...
...
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