Skip to content
Snippets Groups Projects
Commit 465eb786 authored by Simon Ser's avatar Simon Ser
Browse files

freedreno: 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: Emma Anholt's avatarEmma Anholt <emma@anholt.net>
Cc: mesa-stable
Part-of: <mesa/mesa!12074>
parent 9da901d2
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