Skip to content
Snippets Groups Projects
Commit 4524e8bf authored by Simon Ser's avatar Simon Ser Committed by Dylan Baker
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>
(cherry picked from commit 465eb786)
parent bda17c73
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