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
15460d23
Commit
15460d23
authored
Jul 06, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Allow exposing lower d3d feature levels from the Vulkan adapter.
parent
13b16116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
adapter_vk.c
dlls/wined3d/adapter_vk.c
+13
-4
No files found.
dlls/wined3d/adapter_vk.c
View file @
15460d23
...
...
@@ -2260,13 +2260,22 @@ static enum wined3d_feature_level feature_level_from_caps(const struct shader_ca
shader_model
=
min
(
shader_model
,
max
(
shader_caps
->
hs_version
,
4
));
shader_model
=
min
(
shader_model
,
max
(
shader_caps
->
ds_version
,
4
));
if
(
shader_model
>=
5
)
return
WINED3D_FEATURE_LEVEL_
11_1
;
if
(
!
shader_model
)
return
WINED3D_FEATURE_LEVEL_
7
;
if
(
shader_model
>=
4
)
if
(
shader_model
<=
1
)
return
WINED3D_FEATURE_LEVEL_8
;
if
(
shader_model
<=
2
)
return
WINED3D_FEATURE_LEVEL_9_2
;
if
(
shader_model
<=
3
)
return
WINED3D_FEATURE_LEVEL_9_3
;
if
(
shader_model
<=
4
)
return
WINED3D_FEATURE_LEVEL_10_1
;
return
WINED3D_FEATURE_LEVEL_
NONE
;
return
WINED3D_FEATURE_LEVEL_
11_1
;
}
static
void
wined3d_adapter_vk_init_d3d_info
(
struct
wined3d_adapter_vk
*
adapter_vk
,
uint32_t
wined3d_creation_flags
)
...
...
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