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 <contact@emersion.fr> Reviewed-by:
Emma Anholt <emma@anholt.net> Cc: mesa-stable Part-of: <mesa/mesa!12074> (cherry picked from commit 465eb786)