Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d790530d
Commit
d790530d
authored
Mar 11, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make resources 16 byte aligned.
parent
b621fac2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
buffer.c
dlls/d3d9/tests/buffer.c
+3
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/d3d9/tests/buffer.c
View file @
d790530d
...
...
@@ -137,6 +137,7 @@ static void test_vertex_buffer_alignment(IDirect3DDevice9 *device)
DWORD
sizes
[]
=
{
1
,
4
,
16
,
17
,
32
,
33
,
64
,
65
,
1024
,
1025
,
1048576
,
1048577
};
unsigned
int
i
,
j
;
void
*
data
;
unsigned
int
align
=
16
;
for
(
i
=
0
;
i
<
(
sizeof
(
sizes
)
/
sizeof
(
sizes
[
0
]));
i
++
)
{
...
...
@@ -156,8 +157,8 @@ static void test_vertex_buffer_alignment(IDirect3DDevice9 *device)
hr
=
IDirect3DVertexBuffer9_Lock
(
buffer
,
0
,
0
,
&
data
,
0
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DVertexBuffer9_Lock failed (0x%08x)
\n
"
,
hr
);
ok
(((
DWORD_PTR
)
data
&
31
)
==
0
,
"Vertex buffer start address is not 32
byte aligned(size: %d, pool: %s, data: %p)
\n
"
,
sizes
[
i
],
debug_d3dpool
(
pools
[
j
]),
data
);
ok
(((
DWORD_PTR
)
data
&
(
align
-
1
))
==
0
,
"Vertex buffer start address is not %u
byte aligned(size: %d, pool: %s, data: %p)
\n
"
,
align
,
sizes
[
i
],
debug_d3dpool
(
pools
[
j
]),
data
);
hr
=
IDirect3DVertexBuffer9_Unlock
(
buffer
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DVertexBuffer9_Unlock failed (0x%08x)
\n
"
,
hr
);
...
...
dlls/wined3d/wined3d_private.h
View file @
d790530d
...
...
@@ -1798,7 +1798,7 @@ HRESULT resource_set_private_data(IWineD3DResource *iface, REFGUID guid,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
/* Tests show that the start address of resources is 32 byte aligned */
#define RESOURCE_ALIGNMENT
32
#define RESOURCE_ALIGNMENT
16
/*****************************************************************************
* IWineD3DBaseTexture D3D- > openGL state map lookups
...
...
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