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
91305b1f
Commit
91305b1f
authored
Apr 06, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use a more appropriate mask for masking out the write mask.
parent
1120f0f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
91305b1f
...
...
@@ -1940,14 +1940,14 @@ static void shader_glsl_cmp(const struct wined3d_shader_instruction *ins)
(
src1reg
==
dstreg
&&
src1regtype
==
dstregtype
)
||
(
src2reg
==
dstreg
&&
src2regtype
==
dstregtype
))
{
write_mask
=
shader_glsl_get_write_mask
(
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
SWIZZLE_MASK
|
write_mask
),
write_mask
=
shader_glsl_get_write_mask
(
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
WRITEMASK_ALL
|
write_mask
),
mask_char
);
if
(
!
write_mask
)
continue
;
shader_addline
(
ins
->
buffer
,
"tmp0%s = ("
,
mask_char
);
temp_destination
=
TRUE
;
}
else
{
write_mask
=
shader_glsl_append_dst_ext
(
ins
->
buffer
,
ins
,
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
SWIZZLE_MASK
|
write_mask
));
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
WRITEMASK_ALL
|
write_mask
));
if
(
!
write_mask
)
continue
;
}
...
...
@@ -2008,7 +2008,7 @@ static void shader_glsl_cnd(const struct wined3d_shader_instruction *ins)
}
}
write_mask
=
shader_glsl_append_dst_ext
(
ins
->
buffer
,
ins
,
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
SWIZZLE_MASK
|
write_mask
));
ins
->
dst
[
0
].
token
&
(
~
WINED3DSP_
WRITEMASK_ALL
|
write_mask
));
if
(
!
write_mask
)
continue
;
shader_glsl_add_src_param
(
ins
,
ins
->
src
[
0
],
ins
->
src_addr
[
0
],
cmp_channel
,
&
src0_param
);
...
...
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