anv: remove assert typed write support when using NULL surface
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 17 Feb 2023 12:31:00 +0000 (14:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 25 Feb 2023 09:20:01 +0000 (09:20 +0000)
A number of apps hit this assert in debug mode.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21382>

src/intel/vulkan/anv_image.c

index d66d71c..f84e53f 100644 (file)
@@ -2692,8 +2692,6 @@ anv_CreateImageView(VkDevice _device,
              * reads but for most writes.  Instead of hanging if someone gets
              * it wrong, we give them a NULL descriptor.
              */
-            assert(isl_format_supports_typed_writes(device->info,
-                                                    format.isl_format));
             isl_null_fill_state(&device->isl_dev,
                                 iview->planes[vplane].lowered_storage_surface_state.state.map,
                                 .size = {