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
0677a67c
Commit
0677a67c
authored
Oct 08, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Recognize the SM4 NULL register type.
parent
7c7205d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
shader.c
dlls/wined3d/shader.c
+8
-2
shader_sm4.c
dlls/wined3d/shader_sm4.c
+6
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/shader.c
View file @
0677a67c
...
...
@@ -1018,6 +1018,10 @@ static void shader_dump_register(const struct wined3d_shader_register *reg,
TRACE
(
"cb"
);
break
;
case
WINED3DSPR_NULL
:
TRACE
(
"null"
);
break
;
default:
TRACE
(
"unhandled_rtype(%#x)"
,
reg
->
type
);
break
;
...
...
@@ -1044,7 +1048,9 @@ static void shader_dump_register(const struct wined3d_shader_register *reg,
}
TRACE
(
")"
);
}
else
if
(
reg
->
type
!=
WINED3DSPR_RASTOUT
&&
reg
->
type
!=
WINED3DSPR_MISCTYPE
)
else
if
(
reg
->
type
!=
WINED3DSPR_RASTOUT
&&
reg
->
type
!=
WINED3DSPR_MISCTYPE
&&
reg
->
type
!=
WINED3DSPR_NULL
)
{
if
(
reg
->
array_idx
!=
~
0U
)
{
...
...
@@ -1077,7 +1083,7 @@ void shader_dump_dst_param(const struct wined3d_shader_dst_param *param,
shader_dump_register
(
&
param
->
reg
,
shader_version
);
if
(
write_mask
!=
WINED3DSP_WRITEMASK_ALL
)
if
(
write_mask
&&
write_mask
!=
WINED3DSP_WRITEMASK_ALL
)
{
static
const
char
*
write_mask_chars
=
"xyzw"
;
...
...
dlls/wined3d/shader_sm4.c
View file @
0677a67c
...
...
@@ -84,6 +84,7 @@ enum wined3d_sm4_register_type
WINED3D_SM4_RT_OUTPUT
=
0x2
,
WINED3D_SM4_RT_IMMCONST
=
0x4
,
WINED3D_SM4_RT_CONSTBUFFER
=
0x8
,
WINED3D_SM4_RT_NULL
=
0xd
,
};
enum
wined3d_sm4_immconst_type
...
...
@@ -156,6 +157,11 @@ static const WINED3DSHADER_PARAM_REGISTER_TYPE register_type_table[] =
/* UNKNOWN */
0
,
/* UNKNOWN */
0
,
/* WINED3D_SM4_RT_CONSTBUFFER */
WINED3DSPR_CONSTBUFFER
,
/* UNKNOWN */
0
,
/* UNKNOWN */
0
,
/* UNKNOWN */
0
,
/* UNKNOWN */
0
,
/* WINED3D_SM4_RT_NULL */
WINED3DSPR_NULL
,
};
static
const
struct
sysval_map
sysval_map
[]
=
...
...
dlls/wined3d/wined3d_private.h
View file @
0677a67c
...
...
@@ -308,6 +308,7 @@ typedef enum _WINED3DSHADER_PARAM_REGISTER_TYPE
WINED3DSPR_PREDICATE
=
19
,
WINED3DSPR_IMMCONST
,
WINED3DSPR_CONSTBUFFER
,
WINED3DSPR_NULL
,
}
WINED3DSHADER_PARAM_REGISTER_TYPE
;
enum
wined3d_immconst_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