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
05cc344e
Commit
05cc344e
authored
May 07, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Tidy up pshader_hw_dp2add.
parent
c3b3fcaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+2
-6
No files found.
dlls/wined3d/arb_program_shader.c
View file @
05cc344e
...
...
@@ -878,15 +878,11 @@ static void pshader_hw_dp2add(const struct wined3d_shader_instruction *ins)
{
const
struct
wined3d_shader_dst_param
*
dst
=
&
ins
->
dst
[
0
];
SHADER_BUFFER
*
buffer
=
ins
->
ctx
->
buffer
;
char
dst_wmask
[
20
];
char
dst_name
[
50
];
char
src_name
[
3
][
50
];
BOOL
sat
=
dst
->
modifiers
&
WINED3DSPDM_SATURATE
;
BOOL
is_color
;
shader_arb_get_register_name
(
ins
->
ctx
->
shader
,
&
dst
->
reg
,
dst_name
,
&
is_color
);
shader_arb_get_write_mask
(
ins
,
dst
,
dst_wmask
);
shader_arb_get_dst_param
(
ins
,
dst
,
dst_name
);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src_name
[
0
]);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
1
],
1
,
src_name
[
1
]);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
2
],
2
,
src_name
[
2
]);
...
...
@@ -895,7 +891,7 @@ static void pshader_hw_dp2add(const struct wined3d_shader_instruction *ins)
shader_addline
(
buffer
,
"MOV TMP, %s;
\n
"
,
src_name
[
0
]);
shader_addline
(
buffer
,
"MOV TMP.z, 0.0;
\n
"
);
shader_addline
(
buffer
,
"DP3 TMP2, TMP, %s;
\n
"
,
src_name
[
1
]);
shader_addline
(
buffer
,
"ADD%s %s
%s, TMP2, %s;
\n
"
,
sat
?
"_SAT"
:
""
,
dst_name
,
dst_wmask
,
src_name
[
2
]);
shader_addline
(
buffer
,
"ADD%s %s
, TMP2, %s;
\n
"
,
sat
?
"_SAT"
:
""
,
dst_name
,
src_name
[
2
]);
}
/* Map the opcode 1-to-1 to the GL code */
...
...
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