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
cd7a9386
Commit
cd7a9386
authored
May 31, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Ignore random WARP failures in test_pipeline_statistics_query.
This is the d3d10core counterpart to
d741742e
. Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
parent
d89a0170
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
d3d10core.c
dlls/d3d10core/tests/d3d10core.c
+12
-0
No files found.
dlls/d3d10core/tests/d3d10core.c
View file @
cd7a9386
...
...
@@ -4750,6 +4750,7 @@ static void test_occlusion_query(void)
static
void
test_pipeline_statistics_query
(
void
)
{
static
const
D3D10_QUERY_DATA_PIPELINE_STATISTICS
zero_data
;
static
const
float
white
[]
=
{
1
.
0
f
,
1
.
0
f
,
1
.
0
f
,
1
.
0
f
};
struct
d3d10core_test_context
test_context
;
...
...
@@ -4810,6 +4811,16 @@ static void test_pipeline_statistics_query(void)
ID3D10Asynchronous_End
(
query
);
get_query_data
(
query
,
&
data
,
sizeof
(
data
));
/* WARP devices randomly return all-zeroed structures as if the draw did not happen. Flushing and
* sleeping a second before ending the query reduces the likelyhood of hitting the bug a lot, but
* does not eliminate it entirely. To make things work reliably ignore such broken results. */
if
(
is_warp_device
(
device
)
&&
!
memcmp
(
&
data
,
&
zero_data
,
sizeof
(
data
)))
{
win_skip
(
"WARP device randomly returns zeroed query results.
\n
"
);
}
else
{
ok
(
data
.
IAVertices
==
4
,
"Got unexpected IAVertices count: %u.
\n
"
,
(
unsigned
int
)
data
.
IAVertices
);
ok
(
data
.
IAPrimitives
==
2
,
"Got unexpected IAPrimitives count: %u.
\n
"
,
(
unsigned
int
)
data
.
IAPrimitives
);
ok
(
data
.
VSInvocations
==
4
,
"Got unexpected VSInvocations count: %u.
\n
"
,
(
unsigned
int
)
data
.
VSInvocations
);
...
...
@@ -4819,6 +4830,7 @@ static void test_pipeline_statistics_query(void)
ok
(
data
.
CPrimitives
==
2
,
"Got unexpected CPrimitives count: %u.
\n
"
,
(
unsigned
int
)
data
.
CPrimitives
);
todo_wine
ok
(
!
data
.
PSInvocations
,
"Got unexpected PSInvocations count: %u.
\n
"
,
(
unsigned
int
)
data
.
PSInvocations
);
}
hr
=
ID3D10Device_CreatePixelShader
(
device
,
ps_code
,
sizeof
(
ps_code
),
&
ps
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
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