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
cf1bfc8c
Commit
cf1bfc8c
authored
Apr 22, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle the source modifier shift in the frontend rather than the backend.
parent
fec1fa93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
baseshader.c
dlls/wined3d/baseshader.c
+2
-2
wined3d_private_types.h
dlls/wined3d/wined3d_private_types.h
+14
-14
No files found.
dlls/wined3d/baseshader.c
View file @
cf1bfc8c
...
@@ -246,7 +246,7 @@ static void shader_parse_src_param(DWORD param, const struct wined3d_shader_src_
...
@@ -246,7 +246,7 @@ static void shader_parse_src_param(DWORD param, const struct wined3d_shader_src_
|
((
param
&
WINED3DSP_REGTYPE_MASK2
)
>>
WINED3DSP_REGTYPE_SHIFT2
);
|
((
param
&
WINED3DSP_REGTYPE_MASK2
)
>>
WINED3DSP_REGTYPE_SHIFT2
);
src
->
register_idx
=
param
&
WINED3DSP_REGNUM_MASK
;
src
->
register_idx
=
param
&
WINED3DSP_REGNUM_MASK
;
src
->
swizzle
=
(
param
&
WINED3DSP_SWIZZLE_MASK
)
>>
WINED3DSP_SWIZZLE_SHIFT
;
src
->
swizzle
=
(
param
&
WINED3DSP_SWIZZLE_MASK
)
>>
WINED3DSP_SWIZZLE_SHIFT
;
src
->
modifiers
=
param
&
WINED3DSP_SRCMOD_MASK
;
src
->
modifiers
=
(
param
&
WINED3DSP_SRCMOD_MASK
)
>>
WINED3DSP_SRCMOD_SHIFT
;
src
->
rel_addr
=
rel_addr
;
src
->
rel_addr
=
rel_addr
;
}
}
...
@@ -781,7 +781,7 @@ static void shader_dump_param(const DWORD param, const DWORD addr_token, int inp
...
@@ -781,7 +781,7 @@ static void shader_dump_param(const DWORD param, const DWORD addr_token, int inp
case
WINED3DSPSM_ABSNEG
:
TRACE
(
")"
);
break
;
case
WINED3DSPSM_ABSNEG
:
TRACE
(
")"
);
break
;
case
WINED3DSPSM_ABS
:
TRACE
(
")"
);
break
;
case
WINED3DSPSM_ABS
:
TRACE
(
")"
);
break
;
default:
default:
TRACE
(
"_unknown_modifier(%#x)"
,
modifier
>>
WINED3DSP_SRCMOD_SHIFT
);
TRACE
(
"_unknown_modifier(%#x)"
,
modifier
);
}
}
}
}
...
...
dlls/wined3d/wined3d_private_types.h
View file @
cf1bfc8c
...
@@ -107,20 +107,20 @@ typedef enum _WINED3DVS_RASTOUT_OFFSETS {
...
@@ -107,20 +107,20 @@ typedef enum _WINED3DVS_RASTOUT_OFFSETS {
#define WINED3DSP_SRCMOD_MASK (0xF << WINED3DSP_SRCMOD_SHIFT)
#define WINED3DSP_SRCMOD_MASK (0xF << WINED3DSP_SRCMOD_SHIFT)
typedef
enum
_WINED3DSHADER_PARAM_SRCMOD_TYPE
{
typedef
enum
_WINED3DSHADER_PARAM_SRCMOD_TYPE
{
WINED3DSPSM_NONE
=
0
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_NONE
=
0
,
WINED3DSPSM_NEG
=
1
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_NEG
=
1
,
WINED3DSPSM_BIAS
=
2
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_BIAS
=
2
,
WINED3DSPSM_BIASNEG
=
3
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_BIASNEG
=
3
,
WINED3DSPSM_SIGN
=
4
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_SIGN
=
4
,
WINED3DSPSM_SIGNNEG
=
5
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_SIGNNEG
=
5
,
WINED3DSPSM_COMP
=
6
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_COMP
=
6
,
WINED3DSPSM_X2
=
7
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_X2
=
7
,
WINED3DSPSM_X2NEG
=
8
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_X2NEG
=
8
,
WINED3DSPSM_DZ
=
9
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_DZ
=
9
,
WINED3DSPSM_DW
=
10
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_DW
=
10
,
WINED3DSPSM_ABS
=
11
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_ABS
=
11
,
WINED3DSPSM_ABSNEG
=
12
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_ABSNEG
=
12
,
WINED3DSPSM_NOT
=
13
<<
WINED3DSP_SRCMOD_SHIFT
,
WINED3DSPSM_NOT
=
13
,
WINED3DSPSM_FORCE_DWORD
=
0x7FFFFFFF
WINED3DSPSM_FORCE_DWORD
=
0x7FFFFFFF
}
WINED3DSHADER_PARAM_SRCMOD_TYPE
;
}
WINED3DSHADER_PARAM_SRCMOD_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