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
cc6f9c36
Commit
cc6f9c36
authored
Dec 11, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use BOOL type where appropriate.
parent
483b7ebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+7
-8
No files found.
dlls/wined3d/arb_program_shader.c
View file @
cc6f9c36
...
...
@@ -1506,17 +1506,16 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
const
struct
wined3d_shader_src_param
*
src
,
unsigned
int
tmpreg
,
char
*
outregstr
)
{
/* Generate a line that does the input modifier computation and return the input register to use */
BOOL
is_color
=
FALSE
;
BOOL
is_color
=
FALSE
,
insert_line
;
char
regstr
[
256
];
char
swzstr
[
20
];
int
insert_line
;
struct
wined3d_shader_buffer
*
buffer
=
ins
->
ctx
->
buffer
;
struct
shader_arb_ctx_priv
*
ctx
=
ins
->
ctx
->
backend_data
;
const
char
*
one
=
arb_get_helper_value
(
ins
->
ctx
->
reg_maps
->
shader_version
.
type
,
ARB_ONE
);
const
char
*
two
=
arb_get_helper_value
(
ins
->
ctx
->
reg_maps
->
shader_version
.
type
,
ARB_TWO
);
/* Assume a new line will be added */
insert_line
=
1
;
insert_line
=
TRUE
;
/* Get register name */
shader_arb_get_register_name
(
ins
,
&
src
->
reg
,
regstr
,
&
is_color
);
...
...
@@ -1526,11 +1525,11 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
{
case
WINED3DSPSM_NONE
:
sprintf
(
outregstr
,
"%s%s"
,
regstr
,
swzstr
);
insert_line
=
0
;
insert_line
=
FALSE
;
break
;
case
WINED3DSPSM_NEG
:
sprintf
(
outregstr
,
"-%s%s"
,
regstr
,
swzstr
);
insert_line
=
0
;
insert_line
=
FALSE
;
break
;
case
WINED3DSPSM_BIAS
:
shader_addline
(
buffer
,
"ADD T%c, %s, -coefdiv.x;
\n
"
,
'A'
+
tmpreg
,
regstr
);
...
...
@@ -1564,7 +1563,7 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
case
WINED3DSPSM_ABS
:
if
(
ctx
->
target_version
>=
NV2
)
{
sprintf
(
outregstr
,
"|%s%s|"
,
regstr
,
swzstr
);
insert_line
=
0
;
insert_line
=
FALSE
;
}
else
{
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
}
...
...
@@ -1576,11 +1575,11 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
sprintf
(
outregstr
,
"-T%c%s"
,
'A'
+
tmpreg
,
swzstr
);
}
insert_line
=
0
;
insert_line
=
FALSE
;
break
;
default:
sprintf
(
outregstr
,
"%s%s"
,
regstr
,
swzstr
);
insert_line
=
0
;
insert_line
=
FALSE
;
}
/* Return modified or original register, with swizzle */
...
...
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