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
88b6d5eb
Commit
88b6d5eb
authored
Apr 29, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Relative addressing tokens are always source parameters.
So the "is_src" argument to shader_dump_arr_entry() is redundant (and wrong).
parent
52644ab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
baseshader.c
dlls/wined3d/baseshader.c
+7
-8
No files found.
dlls/wined3d/baseshader.c
View file @
88b6d5eb
...
...
@@ -901,8 +901,7 @@ static void shader_dump_decl_usage(DWORD decl, DWORD param, DWORD shader_version
}
}
static
void
shader_dump_arr_entry
(
const
DWORD
param
,
const
DWORD
addr_token
,
unsigned
int
reg
,
BOOL
is_src
,
DWORD
shader_version
)
static
void
shader_dump_arr_entry
(
const
DWORD
param
,
const
DWORD
addr_token
,
unsigned
int
reg
,
DWORD
shader_version
)
{
char
relative
=
((
param
&
WINED3DSHADER_ADDRESSMODE_MASK
)
==
WINED3DSHADER_ADDRMODE_RELATIVE
);
...
...
@@ -910,7 +909,7 @@ static void shader_dump_arr_entry(const DWORD param, const DWORD addr_token,
if
(
relative
)
{
TRACE
(
"["
);
if
(
addr_token
)
shader_dump_param
(
addr_token
,
0
,
is_src
,
shader_version
);
shader_dump_param
(
addr_token
,
0
,
TRUE
,
shader_version
);
else
TRACE
(
"a0.x"
);
TRACE
(
" + "
);
...
...
@@ -956,14 +955,14 @@ static void shader_dump_param(const DWORD param, const DWORD addr_token, BOOL is
break
;
case
WINED3DSPR_INPUT
:
TRACE
(
"v"
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
is_src
,
shader_version
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
shader_version
);
break
;
case
WINED3DSPR_CONST
:
case
WINED3DSPR_CONST2
:
case
WINED3DSPR_CONST3
:
case
WINED3DSPR_CONST4
:
TRACE
(
"c"
);
shader_dump_arr_entry
(
param
,
addr_token
,
shader_get_float_offset
(
param
),
is_src
,
shader_version
);
shader_dump_arr_entry
(
param
,
addr_token
,
shader_get_float_offset
(
param
),
shader_version
);
break
;
case
WINED3DSPR_TEXTURE
:
/* vs: case D3DSPR_ADDR */
TRACE
(
"%c%u"
,
(
pshader
?
't'
:
'a'
),
reg
);
...
...
@@ -987,18 +986,18 @@ static void shader_dump_param(const DWORD param, const DWORD addr_token, BOOL is
if
(
WINED3DSHADER_VERSION_MAJOR
(
shader_version
)
>=
3
)
{
TRACE
(
"o"
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
is_src
,
shader_version
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
shader_version
);
}
else
TRACE
(
"oT%u"
,
reg
);
break
;
case
WINED3DSPR_CONSTINT
:
TRACE
(
"i"
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
is_src
,
shader_version
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
shader_version
);
break
;
case
WINED3DSPR_CONSTBOOL
:
TRACE
(
"b"
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
is_src
,
shader_version
);
shader_dump_arr_entry
(
param
,
addr_token
,
reg
,
shader_version
);
break
;
case
WINED3DSPR_LABEL
:
TRACE
(
"l%u"
,
reg
);
...
...
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