]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/kms/nv04-nv40: improve overlay error detection, fix pitch setting
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 6 Aug 2017 02:25:03 +0000 (22:25 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Aug 2017 08:04:34 +0000 (18:04 +1000)
commit9a6edc3ac968aca9ce51d16917705a857285286b
treeb40e23195a72ad94e7b8b47cefb7dc5badbbac2b
parent3ce72bcf33c200e78b87699d20f8e5a564e29a98
drm/nouveau/kms/nv04-nv40: improve overlay error detection, fix pitch setting

We were previously setting the pitch based on a perfectly packed buffer.
This does not necessarily happen. Either modetest started generating
such buffers recently, or earlier testing only happened with well-picked
overlay sizes.

While we're at it, beef up and refactor the error state detection.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/overlay.c