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
59705b9c
Commit
59705b9c
authored
May 01, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the shader_sm1_read_*() functions in shader_trace_init().
parent
752d8040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
34 deletions
+15
-34
baseshader.c
dlls/wined3d/baseshader.c
+15
-34
No files found.
dlls/wined3d/baseshader.c
View file @
59705b9c
...
@@ -1304,19 +1304,22 @@ void shader_trace_init(const DWORD *pFunction, const SHADER_OPCODE *opcode_table
...
@@ -1304,19 +1304,22 @@ void shader_trace_init(const DWORD *pFunction, const SHADER_OPCODE *opcode_table
}
}
else
else
{
{
DWORD
param
,
addr_token
=
0
;
struct
wined3d_shader_src_param
dst_rel_addr
,
src_rel_addr
;
int
tokens_read
;
struct
wined3d_shader_dst_param
dst_param
;
struct
wined3d_shader_src_param
src_param
;
if
(
ins
.
dst_count
)
{
shader_sm1_read_dst_param
(
&
pToken
,
&
dst_param
,
&
dst_rel_addr
,
shader_version
);
}
/* Print out predication source token first - it follows
/* Print out predication source token first - it follows
* the destination token. */
* the destination token. */
if
(
ins
.
predicate
)
if
(
ins
.
predicate
)
{
{
struct
wined3d_shader_src_param
pred
;
shader_sm1_read_src_param
(
&
pToken
,
&
src_param
,
&
src_rel_addr
,
shader_version
);
shader_parse_src_param
(
*
(
pToken
+
2
),
NULL
,
&
pred
);
TRACE
(
"("
);
TRACE
(
"("
);
shader_dump_src_param
(
&
pred
,
shader_version
);
shader_dump_src_param
(
&
src_param
,
shader_version
);
TRACE
(
") "
);
TRACE
(
") "
);
}
}
...
@@ -1346,42 +1349,20 @@ void shader_trace_init(const DWORD *pFunction, const SHADER_OPCODE *opcode_table
...
@@ -1346,42 +1349,20 @@ void shader_trace_init(const DWORD *pFunction, const SHADER_OPCODE *opcode_table
TRACE
(
"p"
);
TRACE
(
"p"
);
}
}
/*
Destination token
*/
/*
We already read the destination token, print it.
*/
if
(
ins
.
dst_count
)
if
(
ins
.
dst_count
)
{
{
struct
wined3d_shader_dst_param
dst
;
shader_dump_ins_modifiers
(
&
dst_param
);
struct
wined3d_shader_src_param
rel_addr
;
shader_sm1_read_dst_param
(
&
pToken
,
&
dst
,
&
rel_addr
,
shader_version
);
shader_dump_ins_modifiers
(
&
dst
);
TRACE
(
" "
);
TRACE
(
" "
);
shader_dump_dst_param
(
&
dst
,
shader_version
);
shader_dump_dst_param
(
&
dst
_param
,
shader_version
);
}
}
/* Predication token - already printed out, just skip it */
if
(
ins
.
predicate
)
++
pToken
;
/* Other source tokens */
/* Other source tokens */
for
(
i
=
ins
.
dst_count
;
i
<
(
ins
.
dst_count
+
ins
.
src_count
);
++
i
)
for
(
i
=
ins
.
dst_count
;
i
<
(
ins
.
dst_count
+
ins
.
src_count
);
++
i
)
{
{
struct
wined3d_shader_src_param
src
,
rel_addr
;
shader_sm1_read_src_param
(
&
pToken
,
&
src_param
,
&
src_rel_addr
,
shader_version
);
tokens_read
=
shader_get_param
(
pToken
,
shader_version
,
&
param
,
&
addr_token
);
pToken
+=
tokens_read
;
if
(
param
&
WINED3DSHADER_ADDRMODE_RELATIVE
)
{
shader_parse_src_param
(
addr_token
,
NULL
,
&
rel_addr
);
shader_parse_src_param
(
param
,
&
rel_addr
,
&
src
);
}
else
{
shader_parse_src_param
(
param
,
NULL
,
&
src
);
}
TRACE
(
!
i
?
" "
:
", "
);
TRACE
(
!
i
?
" "
:
", "
);
shader_dump_src_param
(
&
src
,
shader_version
);
shader_dump_src_param
(
&
src
_param
,
shader_version
);
}
}
}
}
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
...
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