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
8e6c7aaf
Commit
8e6c7aaf
authored
May 24, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix the nvrc implementation of WINED3DTOP_MULTIPLYADD and WINED3DTOP_LERP.
parent
e891a993
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
utils.c
dlls/wined3d/utils.c
+9
-9
No files found.
dlls/wined3d/utils.c
View file @
8e6c7aaf
...
...
@@ -1446,15 +1446,15 @@ void set_tex_op_nvrc(IWineD3DDevice *iface, BOOL is_alpha, int stage, WINED3DTEX
break
;
case
WINED3DTOP_MULTIPLYADD
:
/* Input, arg
1*1+arg2*arg3
*/
/* Input, arg
3*1+arg1*arg2
*/
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_A_NV
,
tex_op_args
.
input
[
0
],
tex_op_args
.
mapping
[
0
],
tex_op_args
.
component_usage
[
0
]));
tex_op_args
.
input
[
2
],
tex_op_args
.
mapping
[
2
],
tex_op_args
.
component_usage
[
2
]));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_B_NV
,
GL_ZERO
,
GL_UNSIGNED_INVERT_NV
,
portion
));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_C_NV
,
tex_op_args
.
input
[
1
],
tex_op_args
.
mapping
[
1
],
tex_op_args
.
component_usage
[
1
]));
tex_op_args
.
input
[
0
],
tex_op_args
.
mapping
[
0
],
tex_op_args
.
component_usage
[
0
]));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_D_NV
,
tex_op_args
.
input
[
2
],
tex_op_args
.
mapping
[
2
],
tex_op_args
.
component_usage
[
2
]));
tex_op_args
.
input
[
1
],
tex_op_args
.
mapping
[
1
],
tex_op_args
.
component_usage
[
1
]));
/* Output */
GL_EXTCALL
(
glCombinerOutputNV
(
target
,
portion
,
GL_DISCARD_NV
,
GL_DISCARD_NV
,
...
...
@@ -1462,15 +1462,15 @@ void set_tex_op_nvrc(IWineD3DDevice *iface, BOOL is_alpha, int stage, WINED3DTEX
break
;
case
WINED3DTOP_LERP
:
/* Input, arg
1*arg2+(1-arg1)*arg3
*/
/* Input, arg
3*arg1+(1-arg3)*arg2
*/
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_A_NV
,
tex_op_args
.
input
[
0
],
tex_op_args
.
mapping
[
0
],
tex_op_args
.
component_usage
[
0
]));
tex_op_args
.
input
[
2
],
tex_op_args
.
mapping
[
2
],
tex_op_args
.
component_usage
[
2
]));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_B_NV
,
tex_op_args
.
input
[
1
],
tex_op_args
.
mapping
[
1
],
tex_op_args
.
component_usage
[
1
]));
tex_op_args
.
input
[
0
],
tex_op_args
.
mapping
[
0
],
tex_op_args
.
component_usage
[
0
]));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_C_NV
,
tex_op_args
.
input
[
0
],
invert_mapping
(
tex_op_args
.
mapping
[
0
]),
tex_op_args
.
component_usage
[
0
]));
tex_op_args
.
input
[
2
],
invert_mapping
(
tex_op_args
.
mapping
[
2
]),
tex_op_args
.
component_usage
[
2
]));
GL_EXTCALL
(
glCombinerInputNV
(
target
,
portion
,
GL_VARIABLE_D_NV
,
tex_op_args
.
input
[
2
],
tex_op_args
.
mapping
[
2
],
tex_op_args
.
component_usage
[
2
]));
tex_op_args
.
input
[
1
],
tex_op_args
.
mapping
[
1
],
tex_op_args
.
component_usage
[
1
]));
/* Output */
GL_EXTCALL
(
glCombinerOutputNV
(
target
,
portion
,
GL_DISCARD_NV
,
GL_DISCARD_NV
,
...
...
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