[igt-dev] [PATCH i-g-t 3/4] tests/kms_frontbuffer_tracking: Enable positive test on linear tiling
Ville Syrjälä
ville.syrjala at linux.intel.com
Thu Feb 6 11:58:10 UTC 2020
On Wed, Feb 05, 2020 at 06:09:43PM -0800, José Roberto de Souza wrote:
> i915 is making fences not mandatory to enable FBC in newer platforms.
> As BSpec do not have restrictions against tiling formats to enable
> FBC it will be possible to enable FBC with linear tiling, so lets test
> it.
>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
> ---
> tests/kms_frontbuffer_tracking.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
> index d5a64a4d..2fda9ab7 100644
> --- a/tests/kms_frontbuffer_tracking.c
> +++ b/tests/kms_frontbuffer_tracking.c
> @@ -2161,11 +2161,15 @@ static void format_draw_subtest(const struct test_mode *t)
>
> static bool tiling_is_valid(int feature_flags, enum tile_type tile)
> {
> + int devid = intel_get_drm_devid(drm.fd);
> +
> if (!(feature_flags & FEATURE_FBC))
> return true;
>
> switch (tile) {
> case TILE_LINEAR:
> + if (AT_LEAST_GEN(devid, 11))
gen9+ IIRC
> + return true;
> return false;
> case TILE_X:
> case TILE_Y:
> --
> 2.25.0
--
Ville Syrjälä
Intel
More information about the igt-dev
mailing list