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
74ad0231
Commit
74ad0231
authored
Aug 10, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Always return E_FAIL for formats which have no support flags.
parent
2208ec08
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
device.c
dlls/d3d11/device.c
+1
-1
d3d11.c
dlls/d3d11/tests/d3d11.c
+7
-4
No files found.
dlls/d3d11/device.c
View file @
74ad0231
...
...
@@ -3959,7 +3959,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
|
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD
;
}
return
S_OK
;
return
*
format_support
?
S_OK
:
E_FAIL
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_device_CheckMultisampleQualityLevels
(
ID3D11Device2
*
iface
,
...
...
dlls/d3d11/tests/d3d11.c
View file @
74ad0231
...
...
@@ -21062,15 +21062,18 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
memset
(
format_support
,
0
,
sizeof
(
format_support
));
for
(
format
=
DXGI_FORMAT_UNKNOWN
;
format
<=
DXGI_FORMAT_B4G4R4A4_UNORM
;
++
format
)
{
winetest_push_context
(
"format %#x"
,
format
);
hr
=
ID3D11Device_CheckFormatSupport
(
device
,
format
,
&
format_support
[
format
]);
ok
(
hr
==
S_OK
||
(
hr
==
E_FAIL
&&
!
format_support
[
format
]),
"Got unexpected result for format %#x: hr %#lx, format_support %#x.
\n
"
,
format
,
hr
,
format_support
[
format
]);
ok
((
hr
==
S_OK
&&
format_support
[
format
])
||
(
hr
==
E_FAIL
&&
!
format_support
[
format
]),
"Got unexpected hr %#lx, format_support %#x.
\n
"
,
hr
,
format_support
[
format
]);
if
(
format_support
[
format
]
&
D3D11_FORMAT_SUPPORT_MIP_AUTOGEN
)
{
ok
(
format_support
[
format
]
&
D3D11_FORMAT_SUPPORT_TEXTURE2D
,
"Got unexpected format support %#x
for format %#x"
,
format_support
[
format
]
,
format
);
"Got unexpected format support %#x
"
,
format
);
}
winetest_pop_context
();
}
for
(
format
=
DXGI_FORMAT_UNKNOWN
;
format
<=
DXGI_FORMAT_B4G4R4A4_UNORM
;
++
format
)
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