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
78cbd9a4
Commit
78cbd9a4
authored
Oct 26, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11/tests: Do not test the w component for DXGI_FORMAT_B8G8R8X8_UNORM in test_vertex_formats().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54399
parent
1ae183a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
d3d11.c
dlls/d3d11/tests/d3d11.c
+13
-3
No files found.
dlls/d3d11/tests/d3d11.c
View file @
78cbd9a4
...
...
@@ -34831,7 +34831,7 @@ static void test_vertex_formats(void)
{
DXGI_FORMAT_R8_SNORM
,
{
2.59842515e-01
,
0
.
0
,
0
.
0
,
1
.
0
}},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
{
3.96078438e-01
,
2.62745112e-01
,
1.29411772e-01
,
5.29411793e-01
}},
{
DXGI_FORMAT_B8G8R8X8_UNORM
,
{
3.96078438e-01
,
2.62745112e-01
,
1.29411772e-01
,
1
.
0
}},
{
DXGI_FORMAT_B8G8R8X8_UNORM
,
{
3.96078438e-01
,
2.62745112e-01
,
1.29411772e-01
}},
};
if
(
!
init_test_context
(
&
test_context
,
NULL
))
...
...
@@ -34875,9 +34875,12 @@ static void test_vertex_formats(void)
};
static
const
unsigned
int
stride
=
sizeof
(
*
quad
);
const
struct
vec4
*
expect
=
&
tests
[
i
].
expect
;
static
const
unsigned
int
offset
=
0
;
ID3D11InputLayout
*
input_layout
;
struct
resource_readback
rb
;
unsigned
int
format_support
;
struct
vec4
value
;
hr
=
ID3D11Device_CheckFormatSupport
(
device
,
tests
[
i
].
format
,
&
format_support
);
ok
(
hr
==
S_OK
||
hr
==
E_FAIL
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
@@ -34900,8 +34903,15 @@ static void test_vertex_formats(void)
ID3D11DeviceContext_PSSetShader
(
context
,
test_context
.
ps
,
NULL
,
0
);
ID3D11DeviceContext_Draw
(
context
,
4
,
0
);
todo_wine_if
(
damavand
&&
tests
[
i
].
format
==
DXGI_FORMAT_B8G8R8X8_UNORM
)
check_texture_vec4
(
rt
,
&
tests
[
i
].
expect
,
1
);
get_texture_readback
(
rt
,
0
,
&
rb
);
value
=
*
get_readback_vec4
(
&
rb
,
0
,
0
);
/* AMD supports B8G8R8X8_UNORM but puts garbage in the w component. */
if
(
tests
[
i
].
format
==
DXGI_FORMAT_B8G8R8X8_UNORM
)
value
.
w
=
0
.
0
f
;
ok
(
compare_vec4
(
&
value
,
expect
,
1
),
"Got {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
value
.
x
,
value
.
y
,
value
.
z
,
value
.
w
,
expect
->
x
,
expect
->
y
,
expect
->
z
,
expect
->
w
);
release_resource_readback
(
&
rb
);
ID3D11InputLayout_Release
(
input_layout
);
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