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
da264c4d
Commit
da264c4d
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
d3d9/tests: Zero stride tests crash on Windows XP, r200 GPU.
parent
0b7b6d10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
device.c
dlls/d3d9/tests/device.c
+18
-10
No files found.
dlls/d3d9/tests/device.c
View file @
da264c4d
...
...
@@ -3172,10 +3172,14 @@ static void test_draw_primitive(void)
hr
=
IDirect3DDevice9_DrawPrimitive
(
device
,
D3DPT_TRIANGLELIST
,
0
,
2
);
ok
(
SUCCEEDED
(
hr
),
"DrawPrimitive failed, hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
2
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
/* Crashes on r200, Windows XP with STATUS_INTEGER_DIVIDE_BY_ZERO. */
if
(
0
)
{
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
2
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
}
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
2
,
quad
,
sizeof
(
*
quad
));
ok
(
SUCCEEDED
(
hr
),
"DrawPrimitiveUP failed, hr %#lx.
\n
"
,
hr
);
...
...
@@ -3205,12 +3209,16 @@ static void test_draw_primitive(void)
ok
(
current_ib
==
index_buffer
,
"Unexpected index buffer %p.
\n
"
,
current_ib
);
IDirect3DIndexBuffer9_Release
(
current_ib
);
hr
=
IDirect3DDevice9_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
2
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
0
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
/* Crashes on r200, Windows XP with STATUS_INTEGER_DIVIDE_BY_ZERO. */
if
(
0
)
{
hr
=
IDirect3DDevice9_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
2
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
,
4
,
0
,
indices
,
D3DFMT_INDEX16
,
quad
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
}
hr
=
IDirect3DDevice9_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