Skip to content

Commit

Permalink
fix transfer queue detection
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Jan 15, 2024
1 parent 35f9199 commit 87e6b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rvk/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ Opt<u32> Physical_Device::queue_index(Queue_Family f) {
case Queue_Family::compute:
return (flags & VK_QUEUE_COMPUTE_BIT) && !(flags & VK_QUEUE_GRAPHICS_BIT);
case Queue_Family::transfer:
return (flags & VK_QUEUE_TRANSFER_BIT) && !(flags & VK_QUEUE_GRAPHICS_BIT);
return (flags & VK_QUEUE_TRANSFER_BIT) && !(flags & VK_QUEUE_GRAPHICS_BIT) &&
!(flags & VK_QUEUE_COMPUTE_BIT);
default: RPP_UNREACHABLE;
}
};
Expand Down

0 comments on commit 87e6b60

Please sign in to comment.