Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9b94c0ab
Commit
9b94c0ab
authored
Aug 18, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the alphaop == colorop matching a bit smarter.
parent
4767be8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+21
-4
No files found.
dlls/wined3d/arb_program_shader.c
View file @
9b94c0ab
...
...
@@ -2627,6 +2627,7 @@ static GLuint gen_arbfp_ffp_shader(struct ffp_settings *settings, IWineD3DStateB
DWORD
arg0
,
arg1
,
arg2
;
BOOL
tempreg_used
=
FALSE
,
tfactor_used
=
FALSE
;
BOOL
last
=
FALSE
;
BOOL
op_equal
;
/* Find out which textures are read */
for
(
stage
=
0
;
stage
<
MAX_TEXTURES
;
stage
++
)
{
...
...
@@ -2806,6 +2807,25 @@ static GLuint gen_arbfp_ffp_shader(struct ffp_settings *settings, IWineD3DStateB
last
=
TRUE
;
}
if
(
settings
->
op
[
stage
].
cop
==
WINED3DTOP_SELECTARG1
&&
settings
->
op
[
stage
].
aop
==
WINED3DTOP_SELECTARG1
)
{
op_equal
=
settings
->
op
[
stage
].
carg1
==
settings
->
op
[
stage
].
aarg1
;
}
else
if
(
settings
->
op
[
stage
].
cop
==
WINED3DTOP_SELECTARG1
&&
settings
->
op
[
stage
].
aop
==
WINED3DTOP_SELECTARG2
)
{
op_equal
=
settings
->
op
[
stage
].
carg1
==
settings
->
op
[
stage
].
aarg2
;
}
else
if
(
settings
->
op
[
stage
].
cop
==
WINED3DTOP_SELECTARG2
&&
settings
->
op
[
stage
].
aop
==
WINED3DTOP_SELECTARG1
)
{
op_equal
=
settings
->
op
[
stage
].
carg2
==
settings
->
op
[
stage
].
aarg1
;
}
else
if
(
settings
->
op
[
stage
].
cop
==
WINED3DTOP_SELECTARG2
&&
settings
->
op
[
stage
].
aop
==
WINED3DTOP_SELECTARG2
)
{
op_equal
=
settings
->
op
[
stage
].
carg2
==
settings
->
op
[
stage
].
aarg2
;
}
else
{
op_equal
=
settings
->
op
[
stage
].
aop
==
settings
->
op
[
stage
].
cop
&&
settings
->
op
[
stage
].
carg0
==
settings
->
op
[
stage
].
aarg0
&&
settings
->
op
[
stage
].
carg1
==
settings
->
op
[
stage
].
aarg1
&&
settings
->
op
[
stage
].
carg2
==
settings
->
op
[
stage
].
aarg2
;
}
if
(
settings
->
op
[
stage
].
aop
==
WINED3DTOP_DISABLE
)
{
gen_ffp_instr
(
&
buffer
,
stage
,
TRUE
,
FALSE
,
last
,
settings
->
op
[
stage
].
dst
,
settings
->
op
[
stage
].
cop
,
settings
->
op
[
stage
].
carg0
,
...
...
@@ -2817,10 +2837,7 @@ static GLuint gen_arbfp_ffp_shader(struct ffp_settings *settings, IWineD3DStateB
}
else
if
(
stage
==
0
)
{
shader_addline
(
&
buffer
,
"MOV ret.a, fragment.color.primary.a;
\n
"
);
}
}
else
if
(
settings
->
op
[
stage
].
aop
==
settings
->
op
[
stage
].
cop
&&
settings
->
op
[
stage
].
carg0
==
settings
->
op
[
stage
].
aarg0
&&
settings
->
op
[
stage
].
carg1
==
settings
->
op
[
stage
].
aarg1
&&
settings
->
op
[
stage
].
carg2
==
settings
->
op
[
stage
].
aarg2
)
{
}
else
if
(
op_equal
)
{
gen_ffp_instr
(
&
buffer
,
stage
,
TRUE
,
TRUE
,
last
,
settings
->
op
[
stage
].
dst
,
settings
->
op
[
stage
].
cop
,
settings
->
op
[
stage
].
carg0
,
settings
->
op
[
stage
].
carg1
,
settings
->
op
[
stage
].
carg2
);
...
...
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