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
b3e98cad
Commit
b3e98cad
authored
Sep 07, 2023
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Zero stride tests crash on Windows XP, r200 GPU.
parent
da264c4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
device.c
dlls/d3d8/tests/device.c
+16
-8
No files found.
dlls/d3d8/tests/device.c
View file @
b3e98cad
...
...
@@ -10329,8 +10329,12 @@ static void test_draw_primitive(void)
ok
(
stride
==
sizeof
(
*
quad
),
"Unexpected stride %u.
\n
"
,
stride
);
IDirect3DVertexBuffer8_Release
(
current_vb
);
hr
=
IDirect3DDevice8_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
quad
,
0
);
ok
(
hr
==
D3D_OK
,
"DrawPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
/* Crashes on r200, Windows XP with STATUS_INTEGER_DIVIDE_BY_ZERO. */
if
(
0
)
{
hr
=
IDirect3DDevice8_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
quad
,
0
);
ok
(
hr
==
D3D_OK
,
"DrawPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
}
hr
=
IDirect3DDevice8_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
quad
,
sizeof
(
*
quad
));
ok
(
hr
==
D3D_OK
,
"DrawPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
...
...
@@ -10360,12 +10364,16 @@ static void test_draw_primitive(void)
ok
(
base_vertex_index
==
1
,
"Unexpected base vertex index %u.
\n
"
,
base_vertex_index
);
IDirect3DIndexBuffer8_Release
(
current_ib
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
0
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
SUCCEEDED
(
hr
),
"DrawIndexedPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
2
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
SUCCEEDED
(
hr
),
"DrawIndexedPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
/* Crashes on r200, Windows XP with STATUS_INTEGER_DIVIDE_BY_ZERO. */
if
(
0
)
{
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
0
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
SUCCEEDED
(
hr
),
"DrawIndexedPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
2
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
SUCCEEDED
(
hr
),
"DrawIndexedPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
}
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
2
,
indices
,
D3DFMT_INDEX16
,
quad
,
sizeof
(
*
quad
));
...
...
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