diff options
author | Chad Versace <[email protected]> | 2015-11-13 10:24:57 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-11-13 10:44:09 -0800 |
commit | ba467467f49577381be651643dd7ff184b998590 (patch) | |
tree | 9fae76e81b846109946723ad7a9cf525b0bddb19 /src/vulkan/anv_wsi_wayland.c | |
parent | af392916ff3856c8e606212914c1623674c49aff (diff) |
anv: Use enum isl_tiling everywhere
In anv_surface and anv_image_create_info, replace member
'uint8_t tile_mode' with 'enum isl_tiling'.
As a nice side-effect, this patch also reduces bug potential because the
hardware enum values for tile modes are unstable across hardware
generations.
Diffstat (limited to 'src/vulkan/anv_wsi_wayland.c')
-rw-r--r-- | src/vulkan/anv_wsi_wayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c index d3d73b8ae2d..f32fda20c09 100644 --- a/src/vulkan/anv_wsi_wayland.c +++ b/src/vulkan/anv_wsi_wayland.c @@ -547,8 +547,8 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain, struct wsi_wl_image *image) VkImage vk_image; result = anv_image_create(vk_device, &(struct anv_image_create_info) { - .force_tile_mode = true, - .tile_mode = XMAJOR, + .force_tiling = true, + .tiling = ISL_TILING_X, .stride = 0, .vk_info = &(VkImageCreateInfo) { |