From c97d8af9aab090e78a145a219d49b6fb94ce0e13 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 7 Dec 2015 08:42:11 -0800 Subject: [PATCH] anv: Fix anv_gem_set_tiling to respect tiling param Function anv_gem_set_tiling() ignored its 'tiling' parameter. It unconditionally set the bo's tiling to I915_TILING_X. --- src/vulkan/anv_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_gem.c b/src/vulkan/anv_gem.c index b815f97ed69..9d0d0332001 100644 --- a/src/vulkan/anv_gem.c +++ b/src/vulkan/anv_gem.c @@ -202,7 +202,7 @@ anv_gem_set_tiling(struct anv_device *device, do { VG_CLEAR(set_tiling); set_tiling.handle = gem_handle; - set_tiling.tiling_mode = I915_TILING_X; + set_tiling.tiling_mode = tiling; set_tiling.stride = stride; ret = ioctl(device->fd, DRM_IOCTL_I915_GEM_SET_TILING, &set_tiling); -- 2.30.2