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
8ac4c98b
Commit
8ac4c98b
authored
Apr 15, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the source modifiers in struct wined3d_shader_src_param.
parent
b6668b02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
baseshader.c
dlls/wined3d/baseshader.c
+1
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/arb_program_shader.c
View file @
8ac4c98b
...
...
@@ -1173,7 +1173,7 @@ static void pshader_hw_tex(const struct wined3d_shader_instruction *ins)
}
else
if
(
shader_version
<
WINED3DPS_VERSION
(
2
,
0
))
{
DWORD
src_mod
=
ins
->
src
[
0
].
token
&
WINED3DSP_SRCMOD_MASK
;
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
if
(
src_mod
==
WINED3DSPSM_DZ
)
{
projected
=
TRUE
;
}
else
if
(
src_mod
==
WINED3DSPSM_DW
)
{
...
...
dlls/wined3d/baseshader.c
View file @
8ac4c98b
...
...
@@ -229,6 +229,7 @@ static void shader_parse_src_param(DWORD param, DWORD addr_param, struct wined3d
src
->
register_type
=
((
param
&
WINED3DSP_REGTYPE_MASK
)
>>
WINED3DSP_REGTYPE_SHIFT
)
|
((
param
&
WINED3DSP_REGTYPE_MASK2
)
>>
WINED3DSP_REGTYPE_SHIFT2
);
src
->
register_idx
=
param
&
WINED3DSP_REGNUM_MASK
;
src
->
modifiers
=
param
&
WINED3DSP_SRCMOD_MASK
;
src
->
token
=
param
;
src
->
addr_token
=
addr_param
;
}
...
...
dlls/wined3d/glsl_shader.c
View file @
8ac4c98b
...
...
@@ -2459,7 +2459,7 @@ static void pshader_glsl_tex(const struct wined3d_shader_instruction *ins)
}
else
if
(
shader_version
<
WINED3DPS_VERSION
(
2
,
0
))
{
DWORD
src_mod
=
ins
->
src
[
0
].
token
&
WINED3DSP_SRCMOD_MASK
;
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
if
(
src_mod
==
WINED3DSPSM_DZ
)
{
sample_flags
|=
WINED3D_GLSL_SAMPLE_PROJECTED
;
...
...
@@ -2559,7 +2559,7 @@ static void pshader_glsl_texcoord(const struct wined3d_shader_instruction *ins)
ins
->
dst
[
0
].
register_idx
,
dst_mask
);
}
else
{
DWORD
reg
=
ins
->
src
[
0
].
register_idx
;
DWORD
src_mod
=
ins
->
src
[
0
].
token
&
WINED3DSP_SRCMOD_MASK
;
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
char
dst_swizzle
[
6
];
shader_glsl_get_swizzle
(
ins
->
src
[
0
].
token
,
FALSE
,
write_mask
,
dst_swizzle
);
...
...
dlls/wined3d/wined3d_private.h
View file @
8ac4c98b
...
...
@@ -466,6 +466,7 @@ struct wined3d_shader_src_param
{
WINED3DSHADER_PARAM_REGISTER_TYPE
register_type
;
UINT
register_idx
;
DWORD
modifiers
;
DWORD
token
;
DWORD
addr_token
;
};
...
...
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