OSDN Git Service

modetest: get the crtc_id from the pipe_arg
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Apr 2020 11:09:59 +0000 (12:09 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 May 2020 20:09:35 +0000 (21:09 +0100)
commit544fab624d3322a37de907b06fc4fb60f906a094
tree1b5615f908256d4cceeef7037abf96b855847b29
parent336c04220ce768298875ca687ec7416bcc80cbf7
modetest: get the crtc_id from the pipe_arg

Makes the code shorter and easier to read.

Currently if the user has not set the crtc_id, we fetch the crtc yet do
not "bother" setting the id - do so.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
tests/modetest/modetest.c