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
b1cea9b1
Commit
b1cea9b1
authored
Apr 03, 2017
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Dump preshader immediates table.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
858bdcb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
preshader.c
dlls/d3dx9_36/preshader.c
+16
-3
No files found.
dlls/d3dx9_36/preshader.c
View file @
b1cea9b1
...
...
@@ -599,7 +599,7 @@ static void dump_ins(struct d3dx_regstore *rs, const struct d3dx_pres_ins *ins)
{
unsigned
int
i
;
TRACE
(
"
%s "
,
pres_op_info
[
ins
->
op
].
mnem
);
TRACE
(
"%s "
,
pres_op_info
[
ins
->
op
].
mnem
);
dump_arg
(
rs
,
&
ins
->
output
,
pres_op_info
[
ins
->
op
].
func_all_comps
?
1
:
ins
->
component_count
);
for
(
i
=
0
;
i
<
pres_op_info
[
ins
->
op
].
input_count
;
++
i
)
{
...
...
@@ -611,11 +611,24 @@ static void dump_ins(struct d3dx_regstore *rs, const struct d3dx_pres_ins *ins)
static
void
dump_preshader
(
struct
d3dx_preshader
*
pres
)
{
unsigned
int
i
;
unsigned
int
i
,
immediate_count
=
pres
->
regs
.
table_sizes
[
PRES_REGTAB_IMMED
];
const
double
*
immediates
=
pres
->
regs
.
tables
[
PRES_REGTAB_IMMED
];
if
(
immediate_count
)
TRACE
(
"// Immediates:
\n
"
);
for
(
i
=
0
;
i
<
immediate_count
;
++
i
)
{
if
(
!
(
i
%
4
))
TRACE
(
"// "
);
TRACE
(
"%.8e"
,
immediates
[
i
]);
if
(
i
%
4
==
3
)
TRACE
(
"
\n
"
);
else
TRACE
(
", "
);
}
TRACE
(
"// Preshader registers:
\n
"
);
dump_registers
(
&
pres
->
inputs
);
TRACE
(
"
preshader
\n
"
);
TRACE
(
"preshader
\n
"
);
for
(
i
=
0
;
i
<
pres
->
ins_count
;
++
i
)
dump_ins
(
&
pres
->
regs
,
&
pres
->
ins
[
i
]);
}
...
...
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