drm-tests/plane_test: add support for high-bit depth RGBx formats

This CL adds support for 30bpp RGBx formats (XR30, XB30, AR30, AB30).
These formats have to be written one word at a time (and not one
byte as the others), so I had to add a bit of code in draw_color().

BUG=b:183760490
TEST=/usr/bin/plane_test --format XR30 --size 600x600 on volteer
(and also the other variations and some other formats to verify
no regressions introduced).

Change-Id: I183b47e23d89db4a3e8224183e5fb20c7428bb58
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/drm-tests/+/2860935
Tested-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Miguel Casas <mcasas@chromium.org>
1 file changed