mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
kms_rotation_crc: Skip the tests if rotation is not supported
This happens when the kernel lacks the rotation patches. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
5edab97f7f
commit
0b3a30ee5a
@ -236,6 +236,9 @@ static void test_sprite_rotation(data_t *data)
|
|||||||
sleep(2);
|
sleep(2);
|
||||||
|
|
||||||
sprite = igt_output_get_plane(output, IGT_PLANE_2);
|
sprite = igt_output_get_plane(output, IGT_PLANE_2);
|
||||||
|
|
||||||
|
igt_require(igt_plane_supports_rotation(sprite));
|
||||||
|
|
||||||
plane_id = sprite->drm_plane->plane_id;
|
plane_id = sprite->drm_plane->plane_id;
|
||||||
if (plane_id != 0) {
|
if (plane_id != 0) {
|
||||||
igt_info("Setting rotation property for plane:%d\n", plane_id);
|
igt_info("Setting rotation property for plane:%d\n", plane_id);
|
||||||
@ -280,6 +283,9 @@ static void test_primary_rotation(data_t *data)
|
|||||||
sleep(2);
|
sleep(2);
|
||||||
|
|
||||||
primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
|
primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
|
||||||
|
|
||||||
|
igt_require(igt_plane_supports_rotation(primary));
|
||||||
|
|
||||||
plane_id = primary->drm_plane->plane_id;
|
plane_id = primary->drm_plane->plane_id;
|
||||||
if (plane_id != 0) {
|
if (plane_id != 0) {
|
||||||
igt_info("Setting rotation property for plane:%d\n", plane_id);
|
igt_info("Setting rotation property for plane:%d\n", plane_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user