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
adeeb0dc
Commit
adeeb0dc
authored
Jul 17, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Jul 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vulkan-1/tests: Enumerate queue families.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a77416c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
vulkan.c
dlls/vulkan-1/tests/vulkan.c
+23
-0
No files found.
dlls/vulkan-1/tests/vulkan.c
View file @
adeeb0dc
...
...
@@ -149,6 +149,28 @@ static void enumerate_physical_device(VkPhysicalDevice vk_physical_device)
VK_VERSION_PATCH
(
properties
.
apiVersion
));
}
static
void
enumerate_device_queues
(
VkPhysicalDevice
vk_physical_device
)
{
VkPhysicalDeviceProperties
device_properties
;
VkQueueFamilyProperties
*
properties
;
uint32_t
i
,
count
;
vkGetPhysicalDeviceProperties
(
vk_physical_device
,
&
device_properties
);
vkGetPhysicalDeviceQueueFamilyProperties
(
vk_physical_device
,
&
count
,
NULL
);
properties
=
heap_calloc
(
count
,
sizeof
(
*
properties
));
ok
(
!!
properties
,
"Failed to allocate memory.
\n
"
);
vkGetPhysicalDeviceQueueFamilyProperties
(
vk_physical_device
,
&
count
,
properties
);
for
(
i
=
0
;
i
<
count
;
++
i
)
{
trace
(
"Device '%s', queue family %u: flags %#x count %u.
\n
"
,
device_properties
.
deviceName
,
i
,
properties
[
i
].
queueFlags
,
properties
[
i
].
queueCount
);
}
heap_free
(
properties
);
}
static
void
test_physical_device_groups
(
void
)
{
PFN_vkEnumeratePhysicalDeviceGroupsKHR
vkEnumeratePhysicalDeviceGroupsKHR
;
...
...
@@ -248,5 +270,6 @@ START_TEST(vulkan)
{
test_instance_version
();
for_each_device
(
enumerate_physical_device
);
for_each_device
(
enumerate_device_queues
);
test_physical_device_groups
();
}
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