Module: Mesa
Branch: vulkan
Commit: 1d9d90d9a6323c37e80b7870946597b470d8dec0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d9d90d9a6323c37e80b7870946597b470d8dec0

Author: Nanley Chery <nanley.g.ch...@intel.com>
Date:   Wed Mar  2 09:44:48 2016 -0800

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.ch...@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstr...@intel.com>

---

 src/intel/vulkan/anv_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to