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:
parent
a33a96a353
commit
cebb756f3d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue