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
3d3c92ed
Commit
3d3c92ed
authored
Sep 10, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vulkan-1/tests: Add test for unsupported device extensions.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4907ffdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
vulkan.c
dlls/vulkan-1/tests/vulkan.c
+22
-0
No files found.
dlls/vulkan-1/tests/vulkan.c
View file @
3d3c92ed
...
...
@@ -300,6 +300,27 @@ static void test_unsupported_instance_extensions(void)
}
}
static
void
test_unsupported_device_extensions
(
VkPhysicalDevice
vk_physical_device
)
{
VkDevice
vk_device
;
unsigned
int
i
;
VkResult
vr
;
static
const
char
*
extensions
[]
=
{
"VK_KHR_external_fence_fd"
,
"VK_KHR_external_memory_fd"
,
"VK_KHR_external_semaphore_fd"
,
};
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
extensions
);
++
i
)
{
vr
=
create_device
(
vk_physical_device
,
1
,
&
extensions
[
i
],
NULL
,
&
vk_device
);
ok
(
vr
==
VK_ERROR_EXTENSION_NOT_PRESENT
,
"Got VkResult %d for extension %s.
\n
"
,
vr
,
extensions
[
i
]);
}
}
static
void
for_each_device
(
void
(
*
test_func
)(
VkPhysicalDevice
))
{
VkPhysicalDevice
*
vk_physical_devices
;
...
...
@@ -342,4 +363,5 @@ START_TEST(vulkan)
test_physical_device_groups
();
for_each_device
(
test_destroy_command_pool
);
test_unsupported_instance_extensions
();
for_each_device
(
test_unsupported_device_extensions
);
}
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