From 47d74cfa007f2ade0d55bd0e2eb48641f3929d83 Mon Sep 17 00:00:00 2001 From: Fighter19 <1475802+Fighter19@users.noreply.github.com> Date: Tue, 25 Apr 2023 21:06:44 +0200 Subject: [PATCH] Fix wrong detection of seperate stencil usage (#2193) Fix crash on Vivante GPU (#2192) by properly determining when to include seperate stencil usage. --- vulkano/src/device/physical.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/device/physical.rs b/vulkano/src/device/physical.rs index cfee29512c..063dd1b62d 100644 --- a/vulkano/src/device/physical.rs +++ b/vulkano/src/device/physical.rs @@ -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(),