summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_wsi_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/anv_wsi_wayland.c')
-rw-r--r--src/vulkan/anv_wsi_wayland.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c
index 1828b090335..d3d73b8ae2d 100644
--- a/src/vulkan/anv_wsi_wayland.c
+++ b/src/vulkan/anv_wsi_wayland.c
@@ -60,8 +60,10 @@ wsi_wl_display_add_vk_format(struct wsi_wl_display *display, VkFormat format)
return;
/* Don't add formats which aren't supported by the driver */
- if (anv_format_for_vk_format(format)->bs == 0)
+ if (anv_format_for_vk_format(format)->surface_format ==
+ ISL_FORMAT_UNSUPPORTED) {
return;
+ }
f = anv_vector_add(&display->formats);
if (f)