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
e236d91a
Commit
e236d91a
authored
Dec 31, 2006
by
Louis Lenders
Committed by
Alexandre Julliard
Jan 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fix failing tests on windows, when no 3d hardware acceleration is available.
parent
c1cc17d8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
13 deletions
+43
-13
device.c
dlls/d3d8/tests/device.c
+25
-10
surface.c
dlls/d3d8/tests/surface.c
+6
-1
texture.c
dlls/d3d8/tests/texture.c
+6
-1
volume.c
dlls/d3d8/tests/volume.c
+6
-1
No files found.
dlls/d3d8/tests/device.c
View file @
e236d91a
...
...
@@ -120,8 +120,11 @@ static void test_mipmap_levels(void)
hr
=
IDirect3D8_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D8Device (%s)
\n
"
,
DXGetErrorString8
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
check_mipmap_levels
(
pDevice
,
32
,
32
,
6
);
check_mipmap_levels
(
pDevice
,
256
,
1
,
9
);
...
...
@@ -162,8 +165,11 @@ static void test_swapchain(void)
hr
=
IDirect3D8_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D8Device (%s)
\n
"
,
DXGetErrorString8
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
/* Check if the back buffer count was modified */
ok
(
d3dpp
.
BackBufferCount
==
1
,
"The back buffer count in the presentparams struct is %d
\n
"
,
d3dpp
.
BackBufferCount
);
...
...
@@ -315,8 +321,11 @@ static void test_refcount(void)
hr
=
IDirect3D8_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D8Device (%s)
\n
"
,
DXGetErrorString8
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
refcount
=
get_refcount
(
(
IUnknown
*
)
pDevice
);
ok
(
refcount
==
1
,
"Invalid device RefCount %d
\n
"
,
refcount
);
...
...
@@ -607,8 +616,11 @@ static void test_cursor(void)
hr
=
IDirect3D8_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D8Device (%s)
\n
"
,
DXGetErrorString8
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
IDirect3DDevice8_CreateImageSurface
(
pDevice
,
32
,
32
,
D3DFMT_A8R8G8B8
,
&
cursor
);
ok
(
cursor
!=
NULL
,
"IDirect3DDevice8_CreateOffscreenPlainSurface failed with %08x
\n
"
,
hr
);
...
...
@@ -683,8 +695,11 @@ static void test_states(void)
hr
=
IDirect3D8_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
/* no NULLREF here */
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D8Device (%s)
\n
"
,
DXGetErrorString8
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
hr
=
IDirect3DDevice8_SetRenderState
(
pDevice
,
D3DRS_ZVISIBLE
,
TRUE
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice8_SetRenderState(D3DRS_ZVISIBLE, TRUE) returned %s
\n
"
,
DXGetErrorString8
(
hr
));
...
...
dlls/d3d8/tests/surface.c
View file @
e236d91a
...
...
@@ -56,7 +56,12 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
hr
=
IDirect3D8_CreateDevice
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d8/tests/texture.c
View file @
e236d91a
...
...
@@ -56,7 +56,12 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
hr
=
IDirect3D8_CreateDevice
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d8/tests/volume.c
View file @
e236d91a
...
...
@@ -56,7 +56,12 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
hr
=
IDirect3D8_CreateDevice
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
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