[igt-dev] [PATCH i-g-t 2/5] RFC tests/i915/kms_frontbuffer_tracking: xe doesn't support tiling as of now
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Mon Jun 12 05:26:30 UTC 2023
Hi Kunal,
On Fri-09-06-2023 03:42 pm, Kunal Joshi wrote:
> XE doesn't support tiling as of now, so set tiling to linear
>
> v2: use is_xe_device() instead of static variable (Jouni)
> assert if xe device and unsupported tiling method specified
> in opt handler (Jouni)
> v3: Fix condition in igt_assert
> v4: Keep tiling check in igt_require (Bhanu)
>
> Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
> ---
> tests/i915/kms_frontbuffer_tracking.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
> index c2b99670..45a601fe 100644
> --- a/tests/i915/kms_frontbuffer_tracking.c
> +++ b/tests/i915/kms_frontbuffer_tracking.c
> @@ -1341,6 +1341,19 @@ static void setup_drm(void)
> drm.fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
> drm.debugfs = igt_debugfs_dir(drm.fd);
>
> + /*
> + * Assert if xe device and tiling method specified
> + * in opt_handler
> + */
> + igt_assert(is_i915_device(drm.fd) || (is_xe_device(drm.fd) && (opt.tiling == TILING_DEFAULT ||
I think, TILING_DEFAULT is not allowed, because (TILING_DEFAULT == TILING_X)
- Bhanu
> + opt.tiling == TILING_LINEAR)));
> +
> + /*
> + * XE only support linear tiling
> + */
> + if (is_xe_device(drm.fd))
> + opt.tiling = TILING_LINEAR;
> +
> kmstest_set_vt_graphics_mode();
> igt_display_require(&drm.display, drm.fd);
>
> @@ -3634,6 +3647,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>
> for (t.tiling = TILING_LINEAR; t.tiling < TILING_COUNT;
> t.tiling++) {
> +
> if (t.tiling == TILING_X)
> continue;
>
> @@ -3646,6 +3660,9 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
> feature_str(t.feature),
> tiling_str(t.tiling)) {
>
> + if (is_xe_device(drm.fd))
> + igt_require(t.tiling == TILING_LINEAR);
> +
> /* Tiling Y is only supported on GEN9+ */
> if (t.tiling == TILING_Y) {
> igt_require(AT_LEAST_GEN(devid, 9));
More information about the igt-dev
mailing list