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
c81d3b73
Commit
c81d3b73
authored
May 20, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
May 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Recognize the SM4 discard opcode.
parent
53d1bbf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+2
-0
shader_sm4.c
dlls/wined3d/shader_sm4.c
+2
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
c81d3b73
...
...
@@ -4073,6 +4073,8 @@ static void shader_glsl_texkill(const struct wined3d_shader_instruction *ins)
shader_glsl_add_dst_param
(
ins
,
&
ins
->
dst
[
0
],
&
dst_param
);
if
(
ins
->
ctx
->
reg_maps
->
shader_version
.
major
>=
2
)
{
if
(
ins
->
ctx
->
reg_maps
->
shader_version
.
major
>=
4
)
FIXME
(
"SM4 discard not implemented.
\n
"
);
/* 2.0 shaders compare all 4 components in texkill */
shader_addline
(
ins
->
ctx
->
buffer
,
"if (any(lessThan(%s.xyzw, vec4(0.0)))) discard;
\n
"
,
dst_param
.
reg_name
);
}
else
{
...
...
dlls/wined3d/shader_sm4.c
View file @
c81d3b73
...
...
@@ -78,6 +78,7 @@ enum wined3d_sm4_opcode
WINED3D_SM4_OP_CUT
=
0x09
,
WINED3D_SM4_OP_DERIV_RTX
=
0x0b
,
WINED3D_SM4_OP_DERIV_RTY
=
0x0c
,
WINED3D_SM4_OP_DISCARD
=
0x0d
,
WINED3D_SM4_OP_DIV
=
0x0e
,
WINED3D_SM4_OP_DP3
=
0x10
,
WINED3D_SM4_OP_DP4
=
0x11
,
...
...
@@ -212,6 +213,7 @@ static const struct wined3d_sm4_opcode_info opcode_table[] =
{
WINED3D_SM4_OP_CUT
,
WINED3DSIH_CUT
,
""
,
""
},
{
WINED3D_SM4_OP_DERIV_RTX
,
WINED3DSIH_DSX
,
"F"
,
"F"
},
{
WINED3D_SM4_OP_DERIV_RTY
,
WINED3DSIH_DSY
,
"F"
,
"F"
},
{
WINED3D_SM4_OP_DISCARD
,
WINED3DSIH_TEXKILL
,
""
,
"U"
},
{
WINED3D_SM4_OP_DIV
,
WINED3DSIH_DIV
,
"F"
,
"FF"
},
{
WINED3D_SM4_OP_DP3
,
WINED3DSIH_DP3
,
"F"
,
"FF"
},
{
WINED3D_SM4_OP_DP4
,
WINED3DSIH_DP4
,
"F"
,
"FF"
},
...
...
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