Skip to content

Commit

Permalink
Merged pull request "Fix up vulkan initialization": #248
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Dec 14, 2022
2 parents 6e3511e + 3ff9939 commit 0e6825f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/refresh/vkpt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,12 +1170,12 @@ init_vulkan()
const int supports_compute = queue_families[i].queueFlags & VK_QUEUE_COMPUTE_BIT;
const int supports_transfer = queue_families[i].queueFlags & VK_QUEUE_TRANSFER_BIT;

if(supports_graphics && supports_compute && supports_transfer && qvk.queue_idx_graphics < 0) {
if(supports_graphics && supports_compute && qvk.queue_idx_graphics < 0) {
if(!present_support)
continue;
qvk.queue_idx_graphics = i;
}
else if(supports_transfer && qvk.queue_idx_transfer < 0) {
if(supports_transfer && (qvk.queue_idx_transfer < 0 || qvk.queue_idx_graphics == qvk.queue_idx_transfer)) {
qvk.queue_idx_transfer = i;
}
}
Expand Down Expand Up @@ -1292,7 +1292,7 @@ init_vulkan()
.shaderInt16 = qvk.supports_fp16,
.shaderResourceResidency = VK_FALSE,
.shaderResourceMinLod = VK_FALSE,
.sparseBinding = VK_TRUE,
.sparseBinding = VK_FALSE,
.sparseResidencyBuffer = VK_FALSE,
.sparseResidencyImage2D = VK_FALSE,
.sparseResidencyImage3D = VK_FALSE,
Expand Down

0 comments on commit 0e6825f

Please sign in to comment.