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
1368a4c2
Commit
1368a4c2
authored
Dec 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Mark a render target color test as todo.
Split the check_rt_color() function to allow conditional todos.
parent
8bd9fcbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
visual.c
dlls/d3d9/tests/visual.c
+16
-4
No files found.
dlls/d3d9/tests/visual.c
View file @
1368a4c2
...
@@ -258,9 +258,7 @@ static DWORD getPixelColor(IDirect3DDevice9 *device, UINT x, UINT y)
...
@@ -258,9 +258,7 @@ static DWORD getPixelColor(IDirect3DDevice9 *device, UINT x, UINT y)
return
ret
;
return
ret
;
}
}
#define check_rt_color(a, b) check_rt_color_(__LINE__, a, b, false)
static
D3DCOLOR
check_expected_rt_color
(
unsigned
int
line
,
IDirect3DSurface9
*
rt
,
D3DCOLOR
expected_color
)
#define check_rt_color_todo(a, b) check_rt_color_(__LINE__, a, b, true)
static
void
check_rt_color_
(
unsigned
int
line
,
IDirect3DSurface9
*
rt
,
D3DCOLOR
expected_color
,
bool
todo
)
{
{
unsigned
int
color
=
0xdeadbeef
;
unsigned
int
color
=
0xdeadbeef
;
struct
surface_readback
rb
;
struct
surface_readback
rb
;
...
@@ -284,6 +282,15 @@ static void check_rt_color_(unsigned int line, IDirect3DSurface9 *rt, D3DCOLOR e
...
@@ -284,6 +282,15 @@ static void check_rt_color_(unsigned int line, IDirect3DSurface9 *rt, D3DCOLOR e
break
;
break
;
}
}
release_surface_readback
(
&
rb
);
release_surface_readback
(
&
rb
);
return
color
;
}
#define check_rt_color(a, b) check_rt_color_(__LINE__, a, b, false)
#define check_rt_color_todo(a, b) check_rt_color_(__LINE__, a, b, true)
static
void
check_rt_color_
(
unsigned
int
line
,
IDirect3DSurface9
*
rt
,
D3DCOLOR
expected_color
,
bool
todo
)
{
unsigned
int
color
=
check_expected_rt_color
(
line
,
rt
,
expected_color
);
todo_wine_if
(
todo
)
todo_wine_if
(
todo
)
ok_
(
__FILE__
,
line
)(
color
==
expected_color
,
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok_
(
__FILE__
,
line
)(
color
==
expected_color
,
"Got unexpected color 0x%08x.
\n
"
,
color
);
}
}
...
@@ -26913,7 +26920,12 @@ static void test_sample_attached_rendertarget(void)
...
@@ -26913,7 +26920,12 @@ static void test_sample_attached_rendertarget(void)
if
(
is_warp
||
color
==
0x00010101
)
if
(
is_warp
||
color
==
0x00010101
)
skip
(
"Sampling attached render targets is not supported.
\n
"
);
skip
(
"Sampling attached render targets is not supported.
\n
"
);
else
else
check_rt_color
(
rt
,
0x00c1c1c1
);
{
unsigned
int
expected_color
=
0x00c1c1c1
;
unsigned
int
color
=
check_expected_rt_color
(
__LINE__
,
rt
,
expected_color
);
todo_wine_if
(
color
!=
expected_color
)
ok
(
color
==
expected_color
,
"Got unexpected color 0x%08x.
\n
"
,
color
);
}
IDirect3DQuery9_Release
(
event_query
);
IDirect3DQuery9_Release
(
event_query
);
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