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
9aaccfe7
Commit
9aaccfe7
authored
Oct 08, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Correct some swizzles and write masks in arb_program_shader.
parent
af6636c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
9aaccfe7
...
...
@@ -722,9 +722,9 @@ static void gen_color_correction(SHADER_BUFFER *buffer, const char *reg, const c
/* Swap y and z (U and L), and do a sign conversion on x and the new y(V and U) */
shader_addline
(
buffer
,
"MOV TMP.g, %s.%c;
\n
"
,
reg
,
writemask
[
2
]);
shader_addline
(
buffer
,
"MAD %s.%c%c, %s.%c%c, %s, -%s;
\n
"
,
reg
,
writemask
[
1
],
writemask
[
1
],
reg
,
writemask
[
1
],
writemask
[
3
],
shader_addline
(
buffer
,
"MAD %s.%c%c, %s.%c%c
%c%c
, %s, -%s;
\n
"
,
reg
,
writemask
[
1
],
writemask
[
2
],
reg
,
writemask
[
3
],
writemask
[
1
],
writemask
[
3
],
writemask
[
1
],
two
,
one
);
shader_addline
(
buffer
,
"MOV %s.%c, TMP.g;
\n
"
,
reg
,
writemask
[
3
]);
...
...
@@ -2820,6 +2820,7 @@ static GLuint gen_arbfp_ffp_shader(struct ffp_settings *settings, IWineD3DStateB
}
shader_addline
(
&
buffer
,
"PARAM const = {1, 2, 4, 0.5};
\n
"
);
shader_addline
(
&
buffer
,
"TEMP TMP;
\n
"
);
shader_addline
(
&
buffer
,
"TEMP ret;
\n
"
);
if
(
tempreg_used
||
settings
->
sRGB_write
)
shader_addline
(
&
buffer
,
"TEMP tempreg;
\n
"
);
shader_addline
(
&
buffer
,
"TEMP arg0;
\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