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

Commit 72957a98 authored by Steve Pfetsch's avatar Steve Pfetsch
Browse files

Revert "Extend hack to new driver version"

Rolling back along with reverted driver drop

This reverts commit fc00a1d4.

Change-Id: I58e23d7782254824d023ce4973a75ba5d0c1f367
parent fc00a1d4
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -798,8 +798,7 @@ VkResult CreateSwapchainKHR(VkDevice device,
    int gralloc_usage = 0;
    int gralloc_usage = 0;
    if (dispatch.GetSwapchainGrallocUsage2ANDROID) {
    if (dispatch.GetSwapchainGrallocUsage2ANDROID) {
        uint64_t consumer_usage, producer_usage;
        uint64_t consumer_usage, producer_usage;
        uint32_t driver_version = GetData(device).driver_version;
        if (GetData(device).driver_version == 256587285) {
        if (driver_version == 256587285 || driver_version == 96011958) {
            // HACK workaround for loader/driver mismatch during transition to
            // HACK workaround for loader/driver mismatch during transition to
            // vkGetSwapchainGrallocUsage2ANDROID.
            // vkGetSwapchainGrallocUsage2ANDROID.
            typedef VkResult(VKAPI_PTR *
            typedef VkResult(VKAPI_PTR *