[igt-dev] [PATCH] [PATCH i-g-t] i915/gem_set_tilling_vs_gtt: Minor Changes

ranjeet1.kumar at intel.com ranjeet1.kumar at intel.com
Thu Mar 26 05:02:08 UTC 2020


From: ranjeet kumar <ranjeet1.kumar at intel.com>

Check for the correct tilling and set domains in both scenario untile and tile.
Changes the function syntax call and used actual driver i915.

Cc: Tahvanainen Jari <jari.tahvanainen at intel.com>
Signed-off-by: ranjeet kumar <ranjeet1.kumar at intel.com>
---
 tests/i915/gem_set_tiling_vs_gtt.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/i915/gem_set_tiling_vs_gtt.c b/tests/i915/gem_set_tiling_vs_gtt.c
index cee9c02c..38614192 100644
--- a/tests/i915/gem_set_tiling_vs_gtt.c
+++ b/tests/i915/gem_set_tiling_vs_gtt.c
@@ -58,8 +58,11 @@ igt_simple_main
 
 	fd = drm_open_driver(DRIVER_INTEL);
 	igt_require(gem_available_fences(fd) > 0);
-	igt_require(gem_has_mappable_ggtt(fd));
-
+	void gem_require_mappable_ggtt(int i915)
+	{
+		igt_require_f(gem_has_mappable_ggtt(i915),
+			      "HW & kernel support for indirect detiling aperture\n");
+	}	
 	if (IS_GEN2(intel_get_drm_devid(fd)))
 		tile_height = 16;
 	else
-- 
2.25.0



More information about the igt-dev mailing list