Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
e2ecc5a7
Commit
e2ecc5a7
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Plain Diff
Merge branch '61-queuesIntelGraphicsAdaption' into 'develop'
Resolve "Queues-Abfragen anpassen für Intel HD Graphics" Closes
#61
See merge request
!46
parents
c5ea5767
bd052c27
No related branches found
No related tags found
1 merge request
!46
Resolve "Queues-Abfragen anpassen für Intel HD Graphics"
Pipeline
#25480
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/first_mesh/src/main.cpp
+1
-1
1 addition, 1 deletion
projects/first_mesh/src/main.cpp
src/vkcv/QueueManager.cpp
+22
-4
22 additions, 4 deletions
src/vkcv/QueueManager.cpp
with
23 additions
and
5 deletions
projects/first_mesh/src/main.cpp
+
1
−
1
View file @
e2ecc5a7
...
...
@@ -23,7 +23,7 @@ int main(int argc, const char** argv) {
window
,
applicationName
,
VK_MAKE_VERSION
(
0
,
0
,
1
),
{
vk
::
QueueFlagBits
::
e
T
ra
nsfer
,
vk
::
QueueFlagBits
::
e
Graphics
,
vk
::
QueueFlagBits
::
e
Compute
},
{
vk
::
QueueFlagBits
::
e
G
ra
phics
,
vk
::
QueueFlagBits
::
e
Compute
,
vk
::
QueueFlagBits
::
e
Transfer
},
{},
{
"VK_KHR_swapchain"
}
);
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/QueueManager.cpp
+
22
−
4
View file @
e2ecc5a7
#include
<limits>
#include
<unordered_set>
#include
<iostream>
#include
"vkcv/QueueManager.hpp"
#include
"vkcv/QueueManager.hpp"
namespace
vkcv
{
...
...
@@ -89,7 +89,13 @@ namespace vkcv {
}
}
if
(
!
found
)
{
throw
std
::
runtime_error
(
"Too many graphics queues were requested than being available!"
);
for
(
int
i
=
0
;
i
<
queueFamilyStatus
.
size
()
&&
!
found
;
i
++
)
{
if
(
initialQueueFamilyStatus
[
i
][
0
]
>
0
)
{
queuePairsGraphics
.
push_back
(
std
::
pair
(
i
,
0
));
found
=
true
;
}
}
std
::
cerr
<<
"Warning: not enough
\"
"
<<
vk
::
to_string
(
qFlag
)
<<
"
\"
-Queues."
<<
std
::
endl
;
}
break
;
case
vk
::
QueueFlagBits
::
eCompute
:
...
...
@@ -104,7 +110,13 @@ namespace vkcv {
}
}
if
(
!
found
)
{
throw
std
::
runtime_error
(
"Too many compute queues were requested than being available!"
);
for
(
int
i
=
0
;
i
<
queueFamilyStatus
.
size
()
&&
!
found
;
i
++
)
{
if
(
initialQueueFamilyStatus
[
i
][
1
]
>
0
)
{
queuePairsCompute
.
push_back
(
std
::
pair
(
i
,
0
));
found
=
true
;
}
}
std
::
cerr
<<
"Warning: not enough
\"
"
<<
vk
::
to_string
(
qFlag
)
<<
"
\"
-Queues."
<<
std
::
endl
;
}
break
;
case
vk
::
QueueFlagBits
::
eTransfer
:
...
...
@@ -119,7 +131,13 @@ namespace vkcv {
}
}
if
(
!
found
)
{
throw
std
::
runtime_error
(
"Too many transfer queues were requested than being available!"
);
for
(
int
i
=
0
;
i
<
queueFamilyStatus
.
size
()
&&
!
found
;
i
++
)
{
if
(
initialQueueFamilyStatus
[
i
][
2
]
>
0
)
{
queuePairsTransfer
.
push_back
(
std
::
pair
(
i
,
0
));
found
=
true
;
}
}
std
::
cerr
<<
"Warning: not enough
\"
"
<<
vk
::
to_string
(
qFlag
)
<<
"
\"
-Queues."
<<
std
::
endl
;
}
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment