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
ae1e5ec3
Commit
ae1e5ec3
authored
Jun 26, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Test performing a full clear after a draw.
parent
3e51b67e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
d3d10core.c
dlls/d3d10core/tests/d3d10core.c
+41
-0
No files found.
dlls/d3d10core/tests/d3d10core.c
View file @
ae1e5ec3
...
...
@@ -19664,6 +19664,46 @@ static void test_layered_rtv_mismatch(void)
release_test_context
(
&
test_context
);
}
/* A regression test for a broken clear path in the Vulkan renderer. */
static
void
test_clear_after_draw
(
void
)
{
static
const
struct
vec4
black
=
{
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
};
static
const
struct
vec4
green
=
{
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
1
.
0
f
};
static
const
struct
vec4
red
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
};
struct
d3d10core_test_context
test_context
;
struct
resource_readback
rb
;
ID3D10Device
*
device
;
unsigned
int
colour
;
static
const
struct
vec3
quad
[]
=
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
0
f
},
{
-
1
.
0
f
,
0
.
0
f
,
0
.
0
f
},
{
0
.
0
f
,
-
1
.
0
f
,
0
.
0
f
},
{
0
.
0
f
,
0
.
0
f
,
0
.
0
f
},
};
if
(
!
init_test_context
(
&
test_context
))
return
;
device
=
test_context
.
device
;
test_context
.
vb
=
create_buffer
(
device
,
D3D11_BIND_VERTEX_BUFFER
,
sizeof
(
quad
),
quad
);
clear_backbuffer_rtv
(
&
test_context
,
&
black
);
draw_color_quad
(
&
test_context
,
&
green
);
clear_backbuffer_rtv
(
&
test_context
,
&
red
);
draw_color_quad
(
&
test_context
,
&
green
);
get_texture_readback
(
test_context
.
backbuffer
,
0
,
&
rb
);
colour
=
get_readback_color
(
&
rb
,
160
,
120
);
ok
(
colour
==
0xff0000ff
,
"Got unexpected colour 0x%08x.
\n
"
,
colour
);
colour
=
get_readback_color
(
&
rb
,
160
,
360
);
ok
(
colour
==
0xff00ff00
,
"Got unexpected colour 0x%08x.
\n
"
,
colour
);
release_resource_readback
(
&
rb
);
release_test_context
(
&
test_context
);
}
START_TEST
(
d3d10core
)
{
unsigned
int
argc
,
i
;
...
...
@@ -19808,6 +19848,7 @@ START_TEST(d3d10core)
queue_test
(
test_stencil_only_write_after_clear
);
queue_test
(
test_vertex_formats
);
queue_test
(
test_layered_rtv_mismatch
);
queue_test
(
test_clear_after_draw
);
run_queued_tests
();
...
...
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