diff options
author | Daniel Stone <[email protected]> | 2018-02-09 15:43:26 -0800 |
---|---|---|
committer | Daniel Stone <[email protected]> | 2018-02-21 22:37:10 +0000 |
commit | 55b27e1e5f21d62855e955446a63afb5ef8b97a6 (patch) | |
tree | bbae99a4a28ca098e5ce6582a5dcdaa9fcc53323 /src/vulkan/wsi/wsi_common.c | |
parent | 61c3feb38dcae3feb1176426903ca8e0046edd12 (diff) |
vulkan/wsi: Add drm_modifier member to wsi_image
Not yet used anywhere.
Signed-off-by: Daniel Stone <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index f257eb08755..c235128e562 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -22,6 +22,7 @@ */ #include "wsi_common_private.h" +#include "drm_fourcc.h" #include "util/macros.h" #include "vk_util.h" @@ -291,6 +292,7 @@ wsi_create_native_image(const struct wsi_swapchain *chain, if (result != VK_SUCCESS) goto fail; + image->drm_modifier = DRM_FORMAT_MOD_INVALID; image->num_planes = 1; image->sizes[0] = reqs.size; image->row_pitches[0] = image_layout.rowPitch; @@ -494,6 +496,7 @@ wsi_create_prime_image(const struct wsi_swapchain *chain, if (result != VK_SUCCESS) goto fail; + image->drm_modifier = DRM_FORMAT_MOD_LINEAR; image->num_planes = 1; image->sizes[0] = linear_size; image->row_pitches[0] = linear_stride; |