Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351a8df9 authored by Tom Murphy's avatar Tom Murphy Committed by Gerrit Code Review
Browse files

Merge "Fix GetPhysicalDeviceSurfaceFormats2KHR for compression control struct handling" into main

parents 16fbe775 7e7812ed
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1225,8 +1225,15 @@ VkResult GetPhysicalDeviceSurfaceFormats2KHR(
                            surfaceCompressionProps
                                ->imageCompressionFixedRateFlags =
                                compressionProps.imageCompressionFixedRateFlags;
                        } else {
                        } else if (compressionRes ==
                                       VK_ERROR_OUT_OF_HOST_MEMORY ||
                                   compressionRes ==
                                       VK_ERROR_OUT_OF_DEVICE_MEMORY) {
                            return compressionRes;
                        } else {
                            // For any of the *_NOT_SUPPORTED errors we continue
                            // onto the next format
                            continue;
                        }
                    }
                } break;