sna: Check if the kernel reports a tiling-stride less than our request

Looks like a bug has snuck in somewhere in our set-tiling path. Since it
exists, try to workaround it whilst it is root caused.

Reported-by: Adric Blake <promarbler14@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=103025#c9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2017-10-07 11:36:09 +01:00
parent a33a96a353
commit cebb756f3d
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ restart:
bo->tiling, tiling,
bo->pitch, stride,
set_tiling.tiling_mode == tiling));
return set_tiling.tiling_mode == tiling;
return set_tiling.tiling_mode == tiling && bo->pitch >= stride;
}
err = errno;