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

Commit 2e679ca6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 20e3639b 1bde002d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1215,8 +1215,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;