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
62d9dc21
Commit
62d9dc21
authored
Apr 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the relative addressing mode in struct wined3d_shader_dst_param.
parent
22e57d02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
baseshader.c
dlls/wined3d/baseshader.c
+1
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-2
vertexshader.c
dlls/wined3d/vertexshader.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/baseshader.c
View file @
62d9dc21
...
@@ -220,6 +220,7 @@ static void shader_parse_dst_param(DWORD param, DWORD addr_param, struct wined3d
...
@@ -220,6 +220,7 @@ static void shader_parse_dst_param(DWORD param, DWORD addr_param, struct wined3d
dst
->
write_mask
=
param
&
WINED3DSP_WRITEMASK_ALL
;
dst
->
write_mask
=
param
&
WINED3DSP_WRITEMASK_ALL
;
dst
->
modifiers
=
param
&
WINED3DSP_DSTMOD_MASK
;
dst
->
modifiers
=
param
&
WINED3DSP_DSTMOD_MASK
;
dst
->
shift
=
(
param
&
WINED3DSP_DSTSHIFT_MASK
)
>>
WINED3DSP_DSTSHIFT_SHIFT
;
dst
->
shift
=
(
param
&
WINED3DSP_DSTSHIFT_MASK
)
>>
WINED3DSP_DSTSHIFT_SHIFT
;
dst
->
has_rel_addr
=
param
&
WINED3DSHADER_ADDRMODE_RELATIVE
;
dst
->
token
=
param
;
dst
->
token
=
param
;
dst
->
addr_token
=
addr_param
;
dst
->
addr_token
=
addr_param
;
}
}
...
...
dlls/wined3d/glsl_shader.c
View file @
62d9dc21
...
@@ -1278,8 +1278,7 @@ static DWORD shader_glsl_add_dst_param(const struct wined3d_shader_instruction *
...
@@ -1278,8 +1278,7 @@ static DWORD shader_glsl_add_dst_param(const struct wined3d_shader_instruction *
glsl_dst
->
reg_name
[
0
]
=
'\0'
;
glsl_dst
->
reg_name
[
0
]
=
'\0'
;
shader_glsl_get_register_name
(
wined3d_dst
->
register_type
,
wined3d_dst
->
register_idx
,
shader_glsl_get_register_name
(
wined3d_dst
->
register_type
,
wined3d_dst
->
register_idx
,
wined3d_dst
->
token
&
WINED3DSHADER_ADDRMODE_RELATIVE
,
wined3d_dst
->
addr_token
,
wined3d_dst
->
has_rel_addr
,
wined3d_dst
->
addr_token
,
glsl_dst
->
reg_name
,
&
is_color
,
ins
);
glsl_dst
->
reg_name
,
&
is_color
,
ins
);
return
shader_glsl_get_write_mask
(
wined3d_dst
,
glsl_dst
->
mask_str
);
return
shader_glsl_get_write_mask
(
wined3d_dst
,
glsl_dst
->
mask_str
);
}
}
...
...
dlls/wined3d/vertexshader.c
View file @
62d9dc21
...
@@ -185,6 +185,7 @@ static void vshader_set_input(
...
@@ -185,6 +185,7 @@ static void vshader_set_input(
This
->
semantics_in
[
regnum
].
reg
.
write_mask
=
WINED3DSP_WRITEMASK_ALL
;
This
->
semantics_in
[
regnum
].
reg
.
write_mask
=
WINED3DSP_WRITEMASK_ALL
;
This
->
semantics_in
[
regnum
].
reg
.
modifiers
=
0
;
This
->
semantics_in
[
regnum
].
reg
.
modifiers
=
0
;
This
->
semantics_in
[
regnum
].
reg
.
shift
=
0
;
This
->
semantics_in
[
regnum
].
reg
.
shift
=
0
;
This
->
semantics_in
[
regnum
].
reg
.
has_rel_addr
=
FALSE
;
This
->
semantics_in
[
regnum
].
reg
.
token
=
reg_token
;
This
->
semantics_in
[
regnum
].
reg
.
token
=
reg_token
;
This
->
semantics_in
[
regnum
].
reg
.
addr_token
=
0
;
This
->
semantics_in
[
regnum
].
reg
.
addr_token
=
0
;
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
62d9dc21
...
@@ -451,6 +451,7 @@ struct wined3d_shader_dst_param
...
@@ -451,6 +451,7 @@ struct wined3d_shader_dst_param
DWORD
write_mask
;
DWORD
write_mask
;
DWORD
modifiers
;
DWORD
modifiers
;
DWORD
shift
;
DWORD
shift
;
BOOL
has_rel_addr
;
DWORD
token
;
DWORD
token
;
DWORD
addr_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