diff options
author | Nanley Chery <[email protected]> | 2016-06-24 15:39:14 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2016-07-15 10:35:40 -0700 |
commit | 1ef80b26d7488c1ac3174d4725d736ae3de9b4fd (patch) | |
tree | 98a67cab7d88ea3c8f1f3e498a666464c61a4f7a /src/intel/vulkan/anv_private.h | |
parent | 00caba4152fd85492d1eb3306ae6890b3f9e90b2 (diff) |
anv/image: Fix initialization of the ISL tiling
If an internal user creates an image with Vulkan tiling VK_IMAGE_TILING_OPTIMAL
and an ISL tiling that isn't set, ISL will fail to create the image as
anv_image_create_info::isl_tiling_flags will be an invalid value.
Correct this by making anv_image_create_info::isl_tiling_flags an opt-in,
filtering bitmask, that allows the caller to specify which ISL tilings are
acceptable, but not contradictory to the Vulkan tiling.
Opt-out of filtering for vkCreateImage.
Signed-off-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7b2d1dd15b8..4730641eaf2 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1698,7 +1698,10 @@ struct anv_image_view { struct anv_image_create_info { const VkImageCreateInfo *vk_info; + + /** An opt-in bitmask which filters an ISL-mapping of the Vulkan tiling. */ isl_tiling_flags_t isl_tiling_flags; + uint32_t stride; }; |