Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
1f0a143c
Commit
1f0a143c
authored
13 years ago
by
Henri Verbeet
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
d3d10: Add a short description to skip_dword_unknown().
parent
9d553881
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/d3d10/d3d10_private.h
+1
-1
1 addition, 1 deletion
dlls/d3d10/d3d10_private.h
dlls/d3d10/effect.c
+6
-6
6 additions, 6 deletions
dlls/d3d10/effect.c
dlls/d3d10/utils.c
+4
-4
4 additions, 4 deletions
dlls/d3d10/utils.c
with
11 additions
and
11 deletions
dlls/d3d10/d3d10_private.h
+
1
−
1
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 */
This diff is collapsed.
Click to expand it.
dlls/d3d10/effect.c
+
6
−
6
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
);
...
...
This diff is collapsed.
Click to expand it.
dlls/d3d10/utils.c
+
4
−
4
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment