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
6745982a
Commit
6745982a
authored
Feb 16, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Skip YUV tests if the formats cannot be converted.
The Windows 8 testbot supports some YUV formats as plain surfaces, but cannot convert them to RGB in StretchRect.
parent
35223d80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
visual.c
dlls/d3d9/tests/visual.c
+13
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
6745982a
...
...
@@ -10382,6 +10382,7 @@ static void yuv_color_test(IDirect3DDevice9 *device)
IDirect3D9
*
d3d
;
D3DCOLOR
color
;
D3DFORMAT
skip_once
=
D3DFMT_UNKNOWN
;
D3DSURFACE_DESC
desc
;
static
const
struct
{
...
...
@@ -10435,6 +10436,8 @@ static void yuv_color_test(IDirect3DDevice9 *device)
ok
(
SUCCEEDED
(
hr
),
"Failed to get d3d9 interface, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_GetRenderTarget
(
device
,
0
,
&
target
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get render target, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DSurface9_GetDesc
(
target
,
&
desc
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface description, hr %#x.
\n
"
,
hr
);
for
(
i
=
0
;
i
<
sizeof
(
test_data
)
/
sizeof
(
test_data
[
0
]);
i
++
)
{
...
...
@@ -10450,6 +10453,16 @@ static void yuv_color_test(IDirect3DDevice9 *device)
}
continue
;
}
if
(
FAILED
(
IDirect3D9_CheckDeviceFormatConversion
(
d3d
,
0
,
D3DDEVTYPE_HAL
,
test_data
[
i
].
format
,
desc
.
Format
)))
{
if
(
skip_once
!=
test_data
[
i
].
format
)
{
skip
(
"Driver cannot blit %s surfaces.
\n
"
,
test_data
[
i
].
fmt_string
);
skip_once
=
test_data
[
i
].
format
;
}
continue
;
}
/* A pixel is effectively 16 bit large, but two pixels are stored together, so the minimum size is 2x1.
* However, Nvidia Windows drivers have problems with 2x1 YUY2/UYVY surfaces, so use a 4x1 surface and
...
...
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