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
e796da7a
Commit
e796da7a
authored
Jan 21, 2021
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly convert Vulkan sample count format information.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0267395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
utils.c
dlls/wined3d/utils.c
+8
-1
No files found.
dlls/wined3d/utils.c
View file @
e796da7a
...
...
@@ -4133,6 +4133,7 @@ static void init_vulkan_format_info(struct wined3d_format_vk *format,
unsigned
int
flags
;
const
char
*
fixup
;
unsigned
int
i
;
uint32_t
mask
;
VkResult
vr
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
vulkan_formats
);
++
i
)
...
...
@@ -4208,7 +4209,13 @@ static void init_vulkan_format_info(struct wined3d_format_vk *format,
ERR
(
"Failed to get image format properties, vr %s.
\n
"
,
wined3d_debug_vkresult
(
vr
));
return
;
}
format
->
f
.
multisample_types
=
image_properties
.
sampleCounts
;
mask
=
image_properties
.
sampleCounts
&
0x3f
;
while
(
mask
)
{
i
=
(
1u
<<
wined3d_bit_scan
(
&
mask
))
-
1
;
format
->
f
.
multisample_types
|=
1u
<<
i
;
}
}
}
...
...
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