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
1f0a143c
Commit
1f0a143c
authored
Dec 11, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add a short description to skip_dword_unknown().
parent
9d553881
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-1
effect.c
dlls/d3d10/effect.c
+6
-6
utils.c
dlls/d3d10/utils.c
+4
-4
No files found.
dlls/d3d10/d3d10_private.h
View file @
1f0a143c
...
...
@@ -252,7 +252,7 @@ static inline void write_dword(char **ptr, DWORD d)
*
ptr
+=
sizeof
(
d
);
}
void
skip_dword_unknown
(
const
char
**
ptr
,
unsigned
int
count
)
DECLSPEC_HIDDEN
;
void
skip_dword_unknown
(
const
char
*
location
,
const
char
*
*
ptr
,
unsigned
int
count
)
DECLSPEC_HIDDEN
;
void
write_dword_unknown
(
char
**
ptr
,
DWORD
d
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_D3D10_PRIVATE_H */
dlls/d3d10/effect.c
View file @
1f0a143c
...
...
@@ -144,7 +144,7 @@ static HRESULT shader_parse_signature(const char *data, DWORD data_size, struct
read_dword
(
&
ptr
,
&
count
);
TRACE
(
"%u elements
\n
"
,
count
);
skip_dword_unknown
(
&
ptr
,
1
);
skip_dword_unknown
(
"shader signature"
,
&
ptr
,
1
);
e
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
*
e
));
if
(
!
e
)
...
...
@@ -825,7 +825,7 @@ static HRESULT parse_fx10_annotation(struct d3d10_effect_variable *a, const char
hr
=
parse_fx10_variable_head
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
skip_dword_unknown
(
ptr
,
1
);
skip_dword_unknown
(
"annotation"
,
ptr
,
1
);
/* mark the variable as annotation */
a
->
flag
=
D3D10_EFFECT_VARIABLE_ANNOTATION
;
...
...
@@ -1160,7 +1160,7 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char *
read_dword
(
ptr
,
&
v
->
buffer_offset
);
TRACE
(
"Variable offset in buffer: %#x.
\n
"
,
v
->
buffer_offset
);
skip_dword_unknown
(
ptr
,
1
);
skip_dword_unknown
(
"variable"
,
ptr
,
1
);
read_dword
(
ptr
,
&
v
->
flag
);
TRACE
(
"Variable flag: %#x.
\n
"
,
v
->
flag
);
...
...
@@ -1208,7 +1208,7 @@ static HRESULT parse_fx10_local_variable(struct d3d10_effect_variable *v, const
}
TRACE
(
"Variable semantic: %s.
\n
"
,
debugstr_a
(
v
->
semantic
));
skip_dword_unknown
(
ptr
,
1
);
skip_dword_unknown
(
"local variable"
,
ptr
,
1
);
switch
(
v
->
type
->
basetype
)
{
...
...
@@ -1266,7 +1266,7 @@ static HRESULT parse_fx10_local_variable(struct d3d10_effect_variable *v, const
for
(
j
=
0
;
j
<
object_count
;
++
j
)
{
skip_dword_unknown
(
ptr
,
4
);
skip_dword_unknown
(
"state object attribute"
,
ptr
,
4
);
}
}
break
;
...
...
@@ -1363,7 +1363,7 @@ static HRESULT parse_fx10_local_buffer(struct d3d10_effect_variable *l, const ch
read_dword
(
ptr
,
&
l
->
type
->
member_count
);
TRACE
(
"Local buffer member count: %#x.
\n
"
,
l
->
type
->
member_count
);
skip_dword_unknown
(
ptr
,
1
);
skip_dword_unknown
(
"local buffer"
,
ptr
,
1
);
read_dword
(
ptr
,
&
l
->
annotation_count
);
TRACE
(
"Local buffer has %u annotations.
\n
"
,
l
->
annotation_count
);
...
...
dlls/d3d10/utils.c
View file @
1f0a143c
...
...
@@ -146,12 +146,12 @@ void d3d10_rb_free(void *ptr)
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
void
skip_dword_unknown
(
const
char
**
ptr
,
unsigned
int
count
)
void
skip_dword_unknown
(
const
char
*
location
,
const
char
*
*
ptr
,
unsigned
int
count
)
{
unsigned
int
i
;
DWORD
d
;
FIXME
(
"Skipping %u unknown DWORDs
:
\n
"
,
count
);
FIXME
(
"Skipping %u unknown DWORDs
(%s):
\n
"
,
count
,
location
);
for
(
i
=
0
;
i
<
count
;
++
i
)
{
read_dword
(
ptr
,
&
d
);
...
...
@@ -191,9 +191,9 @@ HRESULT parse_dxbc(const char *data, SIZE_T data_size,
}
/* checksum? */
skip_dword_unknown
(
&
ptr
,
4
);
skip_dword_unknown
(
"DXBC header"
,
&
ptr
,
4
);
skip_dword_unknown
(
&
ptr
,
1
);
skip_dword_unknown
(
"DXBC header"
,
&
ptr
,
1
);
read_dword
(
&
ptr
,
&
total_size
);
TRACE
(
"total size: %#x
\n
"
,
total_size
);
...
...
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