diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-11 14:17:50 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-11 14:24:39 +0100 |
commit | 1af5605a35a82932c13711675bfa5f034f7920fa (patch) | |
tree | 111665a3344943e15e791e92961e2df9249398c8 /lib/ioctl_wrappers.c | |
parent | 5e0509f629032bd7b4efa45b15ff13359d5314dc (diff) |
lib: Pass I915_TILING_NONE if Yf or Ys
The kernel expects that BOs for framebuffers with
I915_FORMAT_MOD_Yf_TILED will have I915_TILING_NONE.
Fixes: 050c00d53f39 ("lib: Pass I915_TILING_Y to the kernel if Yf or Ys")
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r-- | lib/ioctl_wrappers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index eabf3ee3..8b75b9d4 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -158,8 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride) igt_require_intel(fd); + /* The kernel doesn't know about these tiling modes, expects NONE */ if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys) - tiling = I915_TILING_Y; + tiling = I915_TILING_NONE; memset(&st, 0, sizeof(st)); do { |