Skip to content
Commit 336c0422 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov
Browse files

modetest: introduce and use get_crtc_by_id() and get_crtc_mask()



Let's make the code shorter, this avoid crashes (when drmModeGetCrtc()
fails) by using a couple of helpers. As get_resources() considers the
drmModeGetCrtc() fail non-fatal, we might as well handle it properly.

v2: Add a comment above the unreachable abort() (Eze)

Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Tested-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
parent ef58af6d
Loading
Loading
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