anv/image: Create a linear image when requested
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 2 Mar 2016 17:44:48 +0000 (09:44 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 3 Mar 2016 19:24:17 +0000 (11:24 -0800)
If a linear image is requested, the only possible result should be a
linearly-tiled surface.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/intel/vulkan/anv_image.c

index 46cf24134689424cd2bee4683cb650e7b51fb223..dc1ea9c80ccee3b4e35c0ef8f1532e1e1e981cdc 100644 (file)
@@ -120,7 +120,7 @@ make_surface(const struct anv_device *dev,
 
    isl_tiling_flags_t tiling_flags = anv_info->isl_tiling_flags;
    if (vk_info->tiling == VK_IMAGE_TILING_LINEAR)
-      tiling_flags &= ISL_TILING_LINEAR_BIT;
+      tiling_flags = ISL_TILING_LINEAR_BIT;
 
    struct anv_surface *anv_surf = get_surface(image, aspect);