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
f8d78b0d
Commit
f8d78b0d
authored
Oct 23, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Introduce a helper function to test for WARP.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e855837a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
visual.c
dlls/d3d8/tests/visual.c
+6
-1
No files found.
dlls/d3d8/tests/visual.c
View file @
f8d78b0d
...
...
@@ -52,6 +52,11 @@ static BOOL color_match(D3DCOLOR c1, D3DCOLOR c2, BYTE max_diff)
return
TRUE
;
}
static
BOOL
adapter_is_warp
(
const
D3DADAPTER_IDENTIFIER8
*
identifier
)
{
return
!
strcmp
(
identifier
->
Driver
,
"d3d10warp.dll"
);
}
struct
surface_readback
{
IDirect3DSurface8
*
surface
;
...
...
@@ -8178,7 +8183,7 @@ static void test_uninitialized_varyings(void)
hr
=
IDirect3D8_GetAdapterIdentifier
(
d3d
,
D3DADAPTER_DEFAULT
,
0
,
&
identifier
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get adapter identifier, hr %#x.
\n
"
,
hr
);
warp
=
!
strcmp
(
identifier
.
Driver
,
"d3d10warp.dll"
);
warp
=
adapter_is_warp
(
&
identifier
);
hr
=
IDirect3DDevice8_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get caps, hr %#x.
\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