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
c20b8da9
Commit
c20b8da9
authored
Dec 04, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Require precise occlusion queries to create a feature level 9.2 device.
parent
d6666cd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
adapter_vk.c
dlls/wined3d/adapter_vk.c
+8
-0
No files found.
dlls/wined3d/adapter_vk.c
View file @
c20b8da9
...
...
@@ -2247,6 +2247,11 @@ static bool adapter_vk_init_driver_info(struct wined3d_adapter_vk *adapter_vk,
adapter_vk
->
a
.
d3d_info
.
feature_level
,
vram_bytes
,
sysmem_bytes
);
}
static
bool
feature_level_9_2_supported
(
const
struct
wined3d_physical_device_info
*
info
)
{
return
info
->
features2
.
features
.
occlusionQueryPrecise
;
}
static
bool
feature_level_9_3_supported
(
const
struct
wined3d_physical_device_info
*
info
,
unsigned
int
shader_model
)
{
return
shader_model
>=
3
...
...
@@ -2293,6 +2298,9 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_p
if
(
shader_model
<=
1
)
return
WINED3D_FEATURE_LEVEL_8
;
if
(
!
feature_level_9_2_supported
(
info
))
return
WINED3D_FEATURE_LEVEL_9_1
;
if
(
!
feature_level_9_3_supported
(
info
,
shader_model
))
return
WINED3D_FEATURE_LEVEL_9_2
;
...
...
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