Skip to content

Commit

Permalink
Fix wrong detection of seperate stencil usage (vulkano-rs#2193)
Browse files Browse the repository at this point in the history
Fix crash on Vivante GPU (vulkano-rs#2192) by properly
determining when to include seperate stencil usage.
  • Loading branch information
Fighter19 authored and hakolao committed Feb 20, 2024
1 parent 328c64d commit 47d74cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkano/src/device/physical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ impl PhysicalDevice {
_ne: _,
} = image_format_info;

let has_separate_stencil_usage = stencil_usage == usage;
let has_separate_stencil_usage = stencil_usage != usage;

let mut info2_vk = ash::vk::PhysicalDeviceImageFormatInfo2 {
format: format.unwrap().into(),
Expand Down

0 comments on commit 47d74cf

Please sign in to comment.