zink: don't warn about missing scalarBlockLayout on v3dv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 13 Sep 2023 10:21:06 +0000 (06:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Sep 2023 10:30:05 +0000 (10:30 +0000)
technically v3dv doesn't support the "full" feature, but it does support
enough of it to run zink without any issues

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

src/gallium/drivers/zink/zink_screen.c

index b3e78ed..17c4b09 100644 (file)
@@ -2798,6 +2798,14 @@ init_driver_workarounds(struct zink_screen *screen)
       abort();
    }
 
+   if (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_V3DV) {
+      /* v3dv doesn't support straddling i/o, but zink doesn't do that so this is effectively supported:
+       * don't spam errors in this case
+       */
+      screen->info.feats12.scalarBlockLayout = true;
+      screen->info.have_EXT_scalar_block_layout = true;
+   }
+
    /* these drivers benefit from renderpass optimization */
    switch (screen->info.driver_props.driverID) {
    case VK_DRIVER_ID_MESA_LLVMPIPE: