summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_wsi_wayland.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-12 12:14:43 -0800
committerChad Versace <[email protected]>2015-11-12 12:23:49 -0800
commitaddc2a9d021cddfebf01db37add9de84ba8def81 (patch)
tree8b44d0084a41f4a5914f448f85bd87532ca6f11f /src/vulkan/anv_wsi_wayland.c
parentcbc31f453d08bca5a38d7cc3d849b4279f9b9665 (diff)
anv: Remove redundant fields anv_format::bs,bw,bh,bd
Instead, use the equivalent fields in anv_format::isl_layout.
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)