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
f9fafb36
Commit
f9fafb36
authored
Mar 24, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the "sysval_semantic" field instead of "semantic_name" to recognize SV_POSITION.
parent
1b08196c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
shader.c
dlls/wined3d/shader.c
+1
-1
wined3d.h
include/wine/wined3d.h
+2
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
f9fafb36
...
@@ -4167,7 +4167,7 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w
...
@@ -4167,7 +4167,7 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w
if
(
vertexprocessing
==
vertexshader
)
if
(
vertexprocessing
==
vertexshader
)
{
{
if
(
!
strcmp
(
semantic_name
,
"SV_POSITION"
)
&&
!
semantic_idx
)
if
(
input
->
sysval_semantic
==
WINED3D_SV_POSITION
)
shader_addline
(
buffer
,
"ps_in[%u]%s = vpos%s;
\n
"
,
shader_addline
(
buffer
,
"ps_in[%u]%s = vpos%s;
\n
"
,
shader
->
u
.
ps
.
input_reg_map
[
input
->
register_idx
],
reg_mask
,
reg_mask
);
shader
->
u
.
ps
.
input_reg_map
[
input
->
register_idx
],
reg_mask
,
reg_mask
);
else
else
...
...
dlls/wined3d/shader.c
View file @
f9fafb36
...
@@ -1045,7 +1045,7 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
...
@@ -1045,7 +1045,7 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
{
{
reg_maps
->
input_registers
|=
1
<<
input_signature
->
elements
[
i
].
register_idx
;
reg_maps
->
input_registers
|=
1
<<
input_signature
->
elements
[
i
].
register_idx
;
if
(
shader_version
.
type
==
WINED3D_SHADER_TYPE_PIXEL
if
(
shader_version
.
type
==
WINED3D_SHADER_TYPE_PIXEL
&&
!
strcmp
(
input_signature
->
elements
[
i
].
semantic_name
,
"SV_POSITION"
)
)
&&
input_signature
->
elements
[
i
].
sysval_semantic
==
WINED3D_SV_POSITION
)
reg_maps
->
vpos
=
1
;
reg_maps
->
vpos
=
1
;
}
}
}
}
...
...
include/wine/wined3d.h
View file @
f9fafb36
...
@@ -767,6 +767,8 @@ enum wined3d_decl_usage
...
@@ -767,6 +767,8 @@ enum wined3d_decl_usage
enum
wined3d_sysval_semantic
enum
wined3d_sysval_semantic
{
{
WINED3D_SV_POSITION
=
1
,
WINED3D_SV_DEPTH
=
0xffffffff
,
WINED3D_SV_DEPTH
=
0xffffffff
,
WINED3D_SV_TARGET0
=
0
,
WINED3D_SV_TARGET0
=
0
,
WINED3D_SV_TARGET1
=
1
,
WINED3D_SV_TARGET1
=
1
,
...
...
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