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
65e614a9
Commit
65e614a9
authored
Oct 29, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add a test to show d3d10 devices implement IDXGIDevice.
parent
926c4794
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
0 deletions
+106
-0
configure
configure
+9
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/d3d10/tests/Makefile.in
+13
-0
device.c
dlls/d3d10/tests/device.c
+83
-0
No files found.
configure
View file @
65e614a9
...
...
@@ -22953,6 +22953,14 @@ dlls/d3d10/Makefile: dlls/d3d10/Makefile.in dlls/Makedll.rules"
ac_config_files
=
"
$ac_config_files
dlls/d3d10/Makefile"
ALL_MAKEFILES
=
"
$ALL_MAKEFILES
\\
dlls/d3d10/tests/Makefile"
test
"x
$enable_d3d10_tests
"
!=
xno
&&
ALL_TEST_DIRS
=
"
$ALL_TEST_DIRS
\\
d3d10/tests"
ALL_MAKEFILE_DEPENDS
=
"
$ALL_MAKEFILE_DEPENDS
dlls/d3d10/tests/Makefile: dlls/d3d10/tests/Makefile.in dlls/Maketest.rules"
ac_config_files
=
"
$ac_config_files
dlls/d3d10/tests/Makefile"
ALL_MAKEFILES
=
"
$ALL_MAKEFILES
\\
dlls/d3d8/Makefile"
test
"x
$enable_d3d8
"
!=
xno
&&
ALL_DLL_DIRS
=
"
$ALL_DLL_DIRS
\\
d3d8"
...
...
@@ -26668,6 +26676,7 @@ do
"dlls/ctapi32/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/ctapi32/Makefile" ;;
"dlls/ctl3d32/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/ctl3d32/Makefile" ;;
"dlls/d3d10/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d10/Makefile" ;;
"dlls/d3d10/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d10/tests/Makefile" ;;
"dlls/d3d8/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d8/Makefile" ;;
"dlls/d3d8/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d8/tests/Makefile" ;;
"dlls/d3d9/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d9/Makefile" ;;
...
...
configure.ac
View file @
65e614a9
...
...
@@ -1775,6 +1775,7 @@ WINE_CONFIG_MAKEFILE([dlls/cryptui/tests/Makefile],[dlls/Maketest.rules],[dlls],
WINE_CONFIG_MAKEFILE([dlls/ctapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/ctl3d32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/d3d10/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/d3d10/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS])
WINE_CONFIG_MAKEFILE([dlls/d3d8/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/d3d8/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS])
WINE_CONFIG_MAKEFILE([dlls/d3d9/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
...
...
dlls/d3d10/tests/Makefile.in
0 → 100644
View file @
65e614a9
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
d3d10.dll
IMPORTS
=
d3d10 kernel32
CTESTS
=
\
device.c
\
@MAKE_TEST_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/d3d10/tests/device.c
0 → 100644
View file @
65e614a9
/*
* Copyright 2008 Henri Verbeet for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "initguid.h"
#include "d3d10.h"
#include "wine/test.h"
static
ID3D10Device
*
create_device
(
void
)
{
ID3D10Device
*
device
;
if
(
SUCCEEDED
(
D3D10CreateDevice
(
NULL
,
D3D10_DRIVER_TYPE_HARDWARE
,
NULL
,
0
,
D3D10_SDK_VERSION
,
&
device
)))
{
trace
(
"Created a HW device
\n
"
);
return
device
;
}
trace
(
"Failed to create a HW device, trying REF
\n
"
);
if
(
SUCCEEDED
(
D3D10CreateDevice
(
NULL
,
D3D10_DRIVER_TYPE_REFERENCE
,
NULL
,
0
,
D3D10_SDK_VERSION
,
&
device
)))
{
trace
(
"Created a REF device
\n
"
);
return
device
;
}
trace
(
"Failed to create a device, returning NULL
\n
"
);
return
NULL
;
}
static
void
test_device_interfaces
(
ID3D10Device
*
device
)
{
HRESULT
hr
;
IUnknown
*
obj
;
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_IUnknown
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IUnknown (%#x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_ID3D10Device
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement ID3D10Device (%#x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_IDXGIObject
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIObject (%#x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_IDXGIDevice
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIDevice (%#x)
\n
"
,
hr
);
}
START_TEST
(
device
)
{
ID3D10Device
*
device
;
ULONG
refcount
;
device
=
create_device
();
if
(
!
device
)
{
skip
(
"Failed to create device, skipping tests
\n
"
);
return
;
}
test_device_interfaces
(
device
);
refcount
=
ID3D10Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left
\n
"
,
refcount
);
}
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