summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-03-02 09:44:48 -0800
committerNanley Chery <nanley.g.chery@intel.com>2016-03-03 11:24:17 -0800
commit1d9d90d9a6323c37e80b7870946597b470d8dec0 (patch)
tree7b7b74bde960202d3fe69fbef88468155019d375 /src/intel/vulkan/anv_image.c
parent091f1da902c71ac8d3d27b325a118e2f683f1ae5 (diff)
downloadexternal_mesa3d-1d9d90d9a6323c37e80b7870946597b470d8dec0.zip
external_mesa3d-1d9d90d9a6323c37e80b7870946597b470d8dec0.tar.gz
external_mesa3d-1d9d90d9a6323c37e80b7870946597b470d8dec0.tar.bz2
anv/image: Create a linear image when requested
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>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r--src/intel/vulkan/anv_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 46cf241..dc1ea9c 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -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);