anv: Fix anv_gem_set_tiling to respect tiling param
authorChad Versace <chad.versace@intel.com>
Mon, 7 Dec 2015 16:42:11 +0000 (08:42 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 7 Dec 2015 16:42:11 +0000 (08:42 -0800)
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

index b815f97ed69de9d66db45fc1e28e9b238ae86137..9d0d03320017d844ccbcbc2fca6e91f7b664db5e 100644 (file)
@@ -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);