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
819225d9
Commit
819225d9
authored
Oct 13, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Mark some fall-throughs in switch statements.
parent
654f2809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
ati_fragment_shader.c
dlls/wined3d/ati_fragment_shader.c
+18
-0
No files found.
dlls/wined3d/ati_fragment_shader.c
View file @
819225d9
...
...
@@ -551,6 +551,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
arg1
=
arg2
;
argmod1
=
argmod2
;
rep1
=
rep2
;
/* fall through */
case
WINED3DTOP_SELECTARG1
:
wrap_op1
(
gl_info
,
GL_MOV_ATI
,
dstreg
,
GL_NONE
,
GL_NONE
,
arg1
,
rep1
,
argmod1
);
...
...
@@ -558,9 +559,11 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_MODULATE4X
:
if
(
dstmod
==
GL_NONE
)
dstmod
=
GL_4X_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATE2X
:
if
(
dstmod
==
GL_NONE
)
dstmod
=
GL_2X_BIT_ATI
;
dstmod
|=
GL_SATURATE_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATE
:
wrap_op2
(
gl_info
,
GL_MUL_ATI
,
dstreg
,
GL_NONE
,
dstmod
,
arg1
,
rep1
,
argmod1
,
...
...
@@ -569,8 +572,10 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_ADDSIGNED2X
:
dstmod
=
GL_2X_BIT_ATI
;
/* fall through */
case
WINED3DTOP_ADDSIGNED
:
argmodextra
=
GL_BIAS_BIT_ATI
;
/* fall through */
case
WINED3DTOP_ADD
:
dstmod
|=
GL_SATURATE_BIT_ATI
;
wrap_op2
(
gl_info
,
GL_ADD_ATI
,
GL_REG_0_ATI
,
GL_NONE
,
dstmod
,
...
...
@@ -598,10 +603,13 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_BLENDCURRENTALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_CURRENT
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDFACTORALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_TFACTOR
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDTEXTUREALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_TEXTURE
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDDIFFUSEALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_DIFFUSE
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
wrap_op3
(
gl_info
,
GL_LERP_ATI
,
dstreg
,
GL_NONE
,
GL_NONE
,
...
...
@@ -622,6 +630,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_MODULATEINVALPHA_ADDCOLOR
:
argmodextra
=
argmod1
&
GL_COMP_BIT_ATI
?
argmod1
&
~
GL_COMP_BIT_ATI
:
argmod1
|
GL_COMP_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATEALPHA_ADDCOLOR
:
if
(
!
argmodextra
)
argmodextra
=
argmod1
;
wrap_op3
(
gl_info
,
GL_MAD_ATI
,
dstreg
,
GL_NONE
,
GL_SATURATE_BIT_ATI
,
...
...
@@ -632,6 +641,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_MODULATEINVCOLOR_ADDALPHA
:
argmodextra
=
argmod1
&
GL_COMP_BIT_ATI
?
argmod1
&
~
GL_COMP_BIT_ATI
:
argmod1
|
GL_COMP_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATECOLOR_ADDALPHA
:
if
(
!
argmodextra
)
argmodextra
=
argmod1
;
wrap_op3
(
gl_info
,
GL_MAD_ATI
,
dstreg
,
GL_NONE
,
GL_SATURATE_BIT_ATI
,
...
...
@@ -688,6 +698,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_SELECTARG2
:
arg1
=
arg2
;
argmod1
=
argmod2
;
/* fall through */
case
WINED3DTOP_SELECTARG1
:
wrap_op1
(
gl_info
,
GL_MOV_ATI
,
dstreg
,
GL_ALPHA
,
GL_NONE
,
arg1
,
GL_NONE
,
argmod1
);
...
...
@@ -695,9 +706,11 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_MODULATE4X
:
if
(
dstmod
==
GL_NONE
)
dstmod
=
GL_4X_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATE2X
:
if
(
dstmod
==
GL_NONE
)
dstmod
=
GL_2X_BIT_ATI
;
dstmod
|=
GL_SATURATE_BIT_ATI
;
/* fall through */
case
WINED3DTOP_MODULATE
:
wrap_op2
(
gl_info
,
GL_MUL_ATI
,
dstreg
,
GL_ALPHA
,
dstmod
,
arg1
,
GL_NONE
,
argmod1
,
...
...
@@ -706,8 +719,10 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_ADDSIGNED2X
:
dstmod
=
GL_2X_BIT_ATI
;
/* fall through */
case
WINED3DTOP_ADDSIGNED
:
argmodextra
=
GL_BIAS_BIT_ATI
;
/* fall through */
case
WINED3DTOP_ADD
:
dstmod
|=
GL_SATURATE_BIT_ATI
;
wrap_op2
(
gl_info
,
GL_ADD_ATI
,
dstreg
,
GL_ALPHA
,
dstmod
,
...
...
@@ -735,10 +750,13 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
case
WINED3DTOP_BLENDCURRENTALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_CURRENT
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDFACTORALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_TFACTOR
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDTEXTUREALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_TEXTURE
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
/* fall through */
case
WINED3DTOP_BLENDDIFFUSEALPHA
:
if
(
extrarg
==
GL_NONE
)
extrarg
=
register_for_arg
(
WINED3DTA_DIFFUSE
,
gl_info
,
stage
,
NULL
,
NULL
,
-
1
);
wrap_op3
(
gl_info
,
GL_LERP_ATI
,
dstreg
,
GL_ALPHA
,
GL_NONE
,
...
...
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