diff options
author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2018-11-30 09:21:25 -0500 |
---|---|---|
committer | Harry Wentland <harry.wentland@amd.com> | 2019-01-08 09:57:57 -0500 |
commit | 221161f4126d26fbd56a8b1a90aa4e80e7f5e8b3 (patch) | |
tree | 7f3540e343dbcde1bff4b3775149ce3687552c7b /tests/kms_plane_multiple.c | |
parent | 75081c6bfb9998bd7cbf35a7ac0578c683fe55a8 (diff) |
tests/kms_plane_scaling: Add support for testing AMDGPU
The plane_scaling subtests are capable of running on AMDGPU when
not using i915 specific tiling formats and when the test only requires
one scaler per pipe.
This patch removes the forced i915 devid and gen checks from non i915
devices. It also adds logic for getting the number of scalers per pipe
in a way that doesn't only depend on devid. One scaler per pipe is
assumed for AMDGPU.
There isn't any specific reason that the x-tiled formats need to be
used on the non-rotation tests on i915 but this patch keeps the
existing test behavior. It's a little simpler to keep it this way for
the prepare_crtc helper that's shared between the scaling test
and the clipping/clamping test.
v2: Use igt_plane_has_format_mod helper (Ville)
v3: Use helpers to check x-tiled support (Ville)
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_plane_multiple.c')
0 files changed, 0 insertions, 0 deletions