zink: disable HIC without resizable BAR
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 25 Aug 2023 16:55:43 +0000 (12:55 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 9 Sep 2023 13:02:44 +0000 (13:02 +0000)
this otherwise ooms the system

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24775>

src/gallium/drivers/zink/zink_screen.c

index c49254d..894adec 100644 (file)
@@ -2835,6 +2835,8 @@ init_driver_workarounds(struct zink_screen *screen)
          screen->driver_workarounds.disable_optimized_compile = true;
       break;
    }
+   if (!screen->resizable_bar)
+      screen->info.have_EXT_host_image_copy = false;
 }
 
 static void