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
81a9f19b
Commit
81a9f19b
authored
Sep 15, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Remove the partial cube map load tests.
They BSOD my Radeon X1600 Windows machine.
parent
01378c5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
52 deletions
+4
-52
d3d.c
dlls/ddraw/tests/d3d.c
+4
-52
No files found.
dlls/ddraw/tests/d3d.c
View file @
81a9f19b
...
...
@@ -2435,58 +2435,10 @@ static void DeviceLoadTest(void)
IDirectDrawSurface7_Release
(
texture_levels
[
0
][
0
]);
memset
(
texture_levels
,
0
,
sizeof
(
texture_levels
));
/* Test cubemap loading from cubemap with different number of faces. */
memset
(
&
ddsd
,
0
,
sizeof
(
DDSURFACEDESC2
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
ddsd
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_TEXTURE
|
DDSCAPS_COMPLEX
;
ddsd
.
ddsCaps
.
dwCaps2
=
DDSCAPS2_CUBEMAP
|
DDSCAPS2_CUBEMAP_POSITIVEX
;
ddsd
.
dwWidth
=
128
;
ddsd
.
dwHeight
=
128
;
hr
=
IDirectDraw7_CreateSurface
(
lpDD
,
&
ddsd
,
&
cube_face_levels
[
0
][
0
][
0
],
NULL
);
ok
(
hr
==
DD_OK
,
"CreateSurface returned: %x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
out
;
memset
(
&
ddsd
,
0
,
sizeof
(
DDSURFACEDESC2
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
ddsd
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_TEXTURE
|
DDSCAPS_COMPLEX
;
ddsd
.
ddsCaps
.
dwCaps2
=
DDSCAPS2_CUBEMAP
|
DDSCAPS2_CUBEMAP_POSITIVEX
|
DDSCAPS2_CUBEMAP_POSITIVEY
;
ddsd
.
dwWidth
=
128
;
ddsd
.
dwHeight
=
128
;
hr
=
IDirectDraw7_CreateSurface
(
lpDD
,
&
ddsd
,
&
cube_face_levels
[
1
][
0
][
0
],
NULL
);
ok
(
hr
==
DD_OK
,
"CreateSurface returned: %x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
out
;
/* INVALIDPARAMS tests currently would fail because wine doesn't support partial cube faces
(the above created cubemaps will have all faces. */
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_ALLFACES
);
todo_wine
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_POSITIVEX
|
DDSCAPS2_CUBEMAP_POSITIVEY
);
todo_wine
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_POSITIVEX
);
todo_wine
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_ALLFACES
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_POSITIVEX
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Load
(
lpD3DDevice
,
cube_face_levels
[
1
][
0
][
0
],
NULL
,
cube_face_levels
[
0
][
0
][
0
],
NULL
,
DDSCAPS2_CUBEMAP_POSITIVEZ
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_Load returned: %x
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
cube_face_levels
[
0
][
0
][
0
]);
IDirectDrawSurface7_Release
(
cube_face_levels
[
1
][
0
][
0
]);
memset
(
cube_face_levels
,
0
,
sizeof
(
cube_face_levels
));
/* Partial cube maps(e.g. created with an explicitly set DDSCAPS2_CUBEMAP_POSITIVEX flag)
* BSOD some Windows machines when an app tries to create them(Radeon X1600, Windows XP,
* Catalyst 10.2 driver, 6.14.10.6925)
*/
}
/* Test texture loading with different mip level count (larger levels match, smaller levels missing in destination. */
...
...
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