diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-10 10:28:51 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-10 11:15:43 +0100 |
commit | 050c00d53f391aa41931229ffe230e4872a5cb4f (patch) | |
tree | 5b722dc579c338478e24ce8f3790cdb69d948c49 /lib/ioctl_wrappers.c | |
parent | ae6496307c3ebe6409eb9b9f60355516faeefa88 (diff) |
lib: Pass I915_TILING_Y to the kernel if Yf or Ys
GEM_SET_TILING doesn't care about Yf or Ys, so just pass Y.
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, 3 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 95bc5e26..eabf3ee3 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -158,6 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride) igt_require_intel(fd); + if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys) + tiling = I915_TILING_Y; + memset(&st, 0, sizeof(st)); do { st.handle = handle; |