nouveau/nvc0: fix linear buffer alignment for scan-out/cursors
authorSimon Ser <contact@emersion.fr>
Thu, 14 Jan 2021 18:02:41 +0000 (19:02 +0100)
committerSimon Ser <contact@emersion.fr>
Sun, 7 Feb 2021 17:44:33 +0000 (18:44 +0100)
commit6650c53e64198d1b2a283778e620be8458765dae
treee4f00588c905ef95eefe3a8b83222ff928ea191f
parent92f12952f32ee08cd302f8591ab059ca5f167239
nouveau/nvc0: fix linear buffer alignment for scan-out/cursors

The hardware can only scan-out linear buffers with a pitch
aligned to 256. It can only use packed buffers for cursors.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/36
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8500>
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c