Skip to content
Snippets Groups Projects
Commit 4bb8e29a authored by Simon Ser's avatar Simon Ser Committed by Dylan Baker
Browse files

panfrost: fail in get_handle(TYPE_KMS) without a scanout resource


The previous logic was returning a handle valid for the render-only
device if rsc->scanout was NULL. However the caller doesn't expect
this: the caller will use the handle with the KMS device.

Instead of returning a handle for the wrong device, fail if we don't
have one.

Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
Cc: mesa-stable
Part-of: <mesa/mesa!12074>
(cherry picked from commit 4c092947)
parent 4524e8bf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment