OSDN Git Service

modetest: only select plane with matching format
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Wed, 6 May 2015 12:29:33 +0000 (14:29 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 May 2015 15:02:28 +0000 (16:02 +0100)
commit360a7eacd4961ceab72554d36917f031a05ed030
treeae4b81486f70720a0191d679b729b48232821012
parent85ede61136d541038a941c1eee90379af33e987f
modetest: only select plane with matching format

Don't assume that a plane supports any kind of pixelformat
but do a check first.

v2: Simplify the format check.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/modetest/modetest.c