From: Chad Versace Date: Mon, 7 Dec 2015 16:42:11 +0000 (-0800) Subject: anv: Fix anv_gem_set_tiling to respect tiling param X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c97d8af9aab090e78a145a219d49b6fb94ce0e13;p=mesa.git 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. --- 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);