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
6d80924a
Commit
6d80924a
authored
Aug 20, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Properly retrieve queues that were created with non-zero flags.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b9427efe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
make_vulkan
dlls/winevulkan/make_vulkan
+1
-1
vulkan.c
dlls/winevulkan/vulkan.c
+17
-2
vulkan_thunks.h
dlls/winevulkan/vulkan_thunks.h
+2
-0
No files found.
dlls/winevulkan/make_vulkan
View file @
6d80924a
...
...
@@ -161,7 +161,7 @@ FUNCTION_OVERRIDES = {
"vkFreeCommandBuffers"
:
{
"dispatch"
:
True
,
"driver"
:
False
,
"thunk"
:
False
},
"vkGetDeviceProcAddr"
:
{
"dispatch"
:
False
,
"driver"
:
True
,
"thunk"
:
False
},
"vkGetDeviceQueue"
:
{
"dispatch"
:
True
,
"driver"
:
False
,
"thunk"
:
False
},
"vkGetDeviceQueue2"
:
{
"dispatch"
:
Fals
e
,
"driver"
:
False
,
"thunk"
:
False
},
"vkGetDeviceQueue2"
:
{
"dispatch"
:
Tru
e
,
"driver"
:
False
,
"thunk"
:
False
},
"vkQueueSubmit"
:
{
"dispatch"
:
True
,
"driver"
:
False
,
"thunk"
:
False
},
# VK_KHR_surface
...
...
dlls/winevulkan/vulkan.c
View file @
6d80924a
...
...
@@ -171,6 +171,7 @@ static void wine_vk_command_buffers_free(struct VkDevice_T *device, VkCommandPoo
static
struct
VkQueue_T
*
wine_vk_device_alloc_queues
(
struct
VkDevice_T
*
device
,
uint32_t
family_index
,
uint32_t
queue_count
,
VkDeviceQueueCreateFlags
flags
)
{
VkDeviceQueueInfo2
queue_info
;
struct
VkQueue_T
*
queues
;
unsigned
int
i
;
...
...
@@ -188,11 +189,25 @@ static struct VkQueue_T *wine_vk_device_alloc_queues(struct VkDevice_T *device,
queue
->
device
=
device
;
queue
->
flags
=
flags
;
/* The native device was already allocated with the required number of queues,
* so just fetch them from there.
/* The Vulkan spec says:
*
* "vkGetDeviceQueue must only be used to get queues that were created
* with the flags parameter of VkDeviceQueueCreateInfo set to zero."
*/
if
(
flags
&&
device
->
funcs
.
p_vkGetDeviceQueue2
)
{
queue_info
.
sType
=
VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2
;
queue_info
.
pNext
=
NULL
;
queue_info
.
flags
=
flags
;
queue_info
.
queueFamilyIndex
=
family_index
;
queue_info
.
queueIndex
=
i
;
device
->
funcs
.
p_vkGetDeviceQueue2
(
device
->
device
,
&
queue_info
,
&
queue
->
queue
);
}
else
{
device
->
funcs
.
p_vkGetDeviceQueue
(
device
->
device
,
family_index
,
i
,
&
queue
->
queue
);
}
}
return
queues
;
}
...
...
dlls/winevulkan/vulkan_thunks.h
View file @
6d80924a
...
...
@@ -889,6 +889,7 @@ struct vulkan_device_funcs
VkResult
(
*
p_vkGetDeviceGroupSurfacePresentModesKHR
)(
VkDevice
,
VkSurfaceKHR
,
VkDeviceGroupPresentModeFlagsKHR
*
);
void
(
*
p_vkGetDeviceMemoryCommitment
)(
VkDevice
,
VkDeviceMemory
,
VkDeviceSize
*
);
void
(
*
p_vkGetDeviceQueue
)(
VkDevice
,
uint32_t
,
uint32_t
,
VkQueue
*
);
void
(
*
p_vkGetDeviceQueue2
)(
VkDevice
,
const
VkDeviceQueueInfo2
*
,
VkQueue
*
);
VkResult
(
*
p_vkGetEventStatus
)(
VkDevice
,
VkEvent
);
VkResult
(
*
p_vkGetFenceStatus
)(
VkDevice
,
VkFence
);
#if defined(USE_STRUCT_CONVERSION)
...
...
@@ -1178,6 +1179,7 @@ struct vulkan_instance_funcs
USE_VK_FUNC(vkGetDeviceGroupSurfacePresentModesKHR) \
USE_VK_FUNC(vkGetDeviceMemoryCommitment) \
USE_VK_FUNC(vkGetDeviceQueue) \
USE_VK_FUNC(vkGetDeviceQueue2) \
USE_VK_FUNC(vkGetEventStatus) \
USE_VK_FUNC(vkGetFenceStatus) \
USE_VK_FUNC(vkGetImageMemoryRequirements) \
...
...
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