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
699eae0c
Commit
699eae0c
authored
May 06, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Shift the writemask in the frontend.
parent
2576bf3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
shader_sm1.c
dlls/wined3d/shader_sm1.c
+5
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+5
-5
No files found.
dlls/wined3d/shader_sm1.c
View file @
699eae0c
...
...
@@ -76,6 +76,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
#define WINED3DSP_DSTSHIFT_SHIFT 24
#define WINED3DSP_DSTSHIFT_MASK (0xf << WINED3DSP_DSTSHIFT_SHIFT)
/* Write mask */
#define WINED3D_SM1_WRITEMASK_SHIFT 16
#define WINED3D_SM1_WRITEMASK_MASK (0xf << WINED3D_SM1_WRITEMASK_SHIFT)
/* Swizzle mask */
#define WINED3DSP_SWIZZLE_SHIFT 16
#define WINED3DSP_SWIZZLE_MASK (0xff << WINED3DSP_SWIZZLE_SHIFT)
...
...
@@ -351,7 +355,7 @@ static void shader_parse_dst_param(DWORD param, const struct wined3d_shader_src_
dst
->
register_type
=
((
param
&
WINED3DSP_REGTYPE_MASK
)
>>
WINED3DSP_REGTYPE_SHIFT
)
|
((
param
&
WINED3DSP_REGTYPE_MASK2
)
>>
WINED3DSP_REGTYPE_SHIFT2
);
dst
->
register_idx
=
param
&
WINED3DSP_REGNUM_MASK
;
dst
->
write_mask
=
param
&
WINED3DSP_WRITEMASK_ALL
;
dst
->
write_mask
=
(
param
&
WINED3D_SM1_WRITEMASK_MASK
)
>>
WINED3D_SM1_WRITEMASK_SHIFT
;
dst
->
modifiers
=
(
param
&
WINED3DSP_DSTMOD_MASK
)
>>
WINED3DSP_DSTMOD_SHIFT
;
dst
->
shift
=
(
param
&
WINED3DSP_DSTSHIFT_MASK
)
>>
WINED3DSP_DSTSHIFT_SHIFT
;
dst
->
rel_addr
=
rel_addr
;
...
...
dlls/wined3d/wined3d_private.h
View file @
699eae0c
...
...
@@ -351,11 +351,11 @@ typedef enum _WINED3DSHADER_PARAM_SRCMOD_TYPE
WINED3DSPSM_NOT
=
13
,
}
WINED3DSHADER_PARAM_SRCMOD_TYPE
;
#define WINED3DSP_WRITEMASK_0 0x
00010000
/* .x r */
#define WINED3DSP_WRITEMASK_1 0x
00020000
/* .y g */
#define WINED3DSP_WRITEMASK_2 0x
00040000
/* .z b */
#define WINED3DSP_WRITEMASK_3 0x
00080000
/* .w a */
#define WINED3DSP_WRITEMASK_ALL 0x
000F0000
/* all */
#define WINED3DSP_WRITEMASK_0 0x
1
/* .x r */
#define WINED3DSP_WRITEMASK_1 0x
2
/* .y g */
#define WINED3DSP_WRITEMASK_2 0x
4
/* .z b */
#define WINED3DSP_WRITEMASK_3 0x
8
/* .w a */
#define WINED3DSP_WRITEMASK_ALL 0x
f
/* all */
typedef
enum
_WINED3DSHADER_PARAM_DSTMOD_TYPE
{
...
...
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