[igt-dev] [PATCH i-g-t v6 without-hack-patches 3/5] tests/kms_frontbuffer_tracking: Enable positive test on linear tiling

José Roberto de Souza
2020-03-25T19:17:03Z

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.

v2:
- changed from GEN11 to GEN9 following kernel patches

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_frontbuffer_tracking.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index f7733da8..34723922 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -2172,12 +2172,14 @@ static void format_draw_subtest(const struct test_mode *t)

static bool tiling_is_valid(int feature_flags, enum tiling_type tiling)
{
+ int devid = intel_get_drm_devid(drm.fd);
+
if (!(feature_flags & FEATURE_FBC))
return true;

switch (tiling) {
case TILING_LINEAR:
- return false;
+ return AT_LEAST_GEN(devid, 9);
case TILING_X:
case TILING_Y:
return true;