Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v11 16/17] api_intel_bb: temporary tests to check stride on gen3
Date: Tue, 28 Jul 2020 14:13:19 +0200	[thread overview]
Message-ID: <20200728121320.6358-17-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20200728121320.6358-1-zbigniew.kempczynski@intel.com>

---
 tests/i915/api_intel_bb.c | 44 +++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 9 deletions(-)

diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 5d7d2326..f9cef922 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -723,11 +723,10 @@ static void full_batch(struct buf_ops *bops)
 	intel_bb_destroy(ibb);
 }
 
-static int render(struct buf_ops *bops, uint32_t tiling, bool do_reloc)
+static int render(struct buf_ops *bops, uint32_t tiling, bool do_reloc,
+		  uint32_t width, uint32_t height)
 {
 	struct intel_bb *ibb;
-	const int width = 1024;
-	const int height = 1024;
 	struct intel_buf src, dst, final;
 	int i915 = buf_ops_get_fd(bops);
 	uint32_t fails = 0;
@@ -735,6 +734,8 @@ static int render(struct buf_ops *bops, uint32_t tiling, bool do_reloc)
 	uint32_t devid = intel_get_drm_devid(i915);
 	igt_render_copyfunc_t render_copy = NULL;
 
+	igt_info("%s() gen: %d\n", __func__, intel_gen(devid));
+
 	/* Don't use relocations on gen12+ */
 	igt_require((do_reloc && intel_gen(devid) < 12) ||
 		    !do_reloc);
@@ -922,6 +923,7 @@ igt_main_args("dpi", NULL, help_str, opt_handler, NULL)
 {
 	int i915;
 	struct buf_ops *bops;
+	uint32_t width;
 
 	igt_fixture {
 		i915 = drm_open_driver(DRIVER_INTEL);
@@ -966,23 +968,47 @@ igt_main_args("dpi", NULL, help_str, opt_handler, NULL)
 	igt_subtest("full-batch")
 		full_batch(bops);
 
+	/* Temporary off */
+#if 0
 	igt_subtest("render-none")
-		render(bops, I915_TILING_NONE, false);
+		render(bops, I915_TILING_NONE, false, 1024, 1024);
 
 	igt_subtest("render-x")
-		render(bops, I915_TILING_X, false);
+		render(bops, I915_TILING_X, false, 1024, 1024);
 
 	igt_subtest("render-y")
-		render(bops, I915_TILING_Y, false);
+		render(bops, I915_TILING_Y, false, 1024, 1024);
 
 	igt_subtest("render-none-reloc")
-		render(bops, I915_TILING_NONE, true);
+		render(bops, I915_TILING_NONE, true, 1024, 1024);
 
 	igt_subtest("render-x-reloc")
-		render(bops, I915_TILING_X, true);
+		render(bops, I915_TILING_X, true, 1024, 1024);
 
 	igt_subtest("render-y-reloc")
-		render(bops, I915_TILING_Y, true);
+		render(bops, I915_TILING_Y, true, 1024, 1024);
+#endif
+
+	for (width = 512; width <= 1024; width += 512) {
+		igt_subtest_f("render-none-%u", width) {
+			render(bops, I915_TILING_NONE, false, width, width);
+		}
+		igt_subtest_f("render-x-%u", width) {
+			render(bops, I915_TILING_X, false, width, width);
+		}
+		igt_subtest_f("render-y-%u", width) {
+			render(bops, I915_TILING_Y, false, width, width);
+		}
+		igt_subtest_f("render-none-reloc-%u", width) {
+			render(bops, I915_TILING_NONE, true, width, width);
+		}
+		igt_subtest_f("render-x-reloc-%u", width) {
+			render(bops, I915_TILING_X, true, width, width);
+		}
+		igt_subtest_f("render-y-reloc-%u", width) {
+			render(bops, I915_TILING_Y, true, width, width);
+		}
+	}
 
 	igt_subtest("render-ccs")
 		render_ccs(bops);
-- 
2.26.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2020-07-28 12:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28 12:13 [igt-dev] [PATCH i-g-t v11 00/17] Remove libdrm in rendercopy Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 01/17] lib/intel_bufops: add mapping on cpu / device Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 02/17] lib/intel_batchbuffer: add new functions to support rendercopy Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 03/17] tests/gem_caching|partial: adopt to batch flush function cleanup Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 04/17] lib/rendercopy: remove libdrm dependency Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 05/17] tests/api_intel_bb: add render tests Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 06/17] lib/intel_batchbuffer: use canonical addresses for 48bit ppgtt Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 07/17] lib/igt_draw: remove libdrm dependency Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 08/17] lib/igt_fb: Removal of " Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 09/17] tests/gem|kms: remove libdrm dependency (batch 1) Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 10/17] tests/gem|kms: remove libdrm dependency (batch 2) Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 11/17] tools/intel_residency: adopt intel_residency to use bufops Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 12/17] tests/perf: remove libdrm dependency for rendercopy Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 13/17] lib/intel_batchbuffer: dump bb to base64 Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 14/17] lib/intel_batchbuffer: change alignment constraints on gen3 Zbigniew Kempczyński
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 15/17] tests/api_intel_bb: base64 dumping code Zbigniew Kempczyński
2020-07-28 12:13 ` Zbigniew Kempczyński [this message]
2020-07-28 12:13 ` [igt-dev] [PATCH i-g-t v11 17/17] HAX: run rendercopy tests Zbigniew Kempczyński
2020-07-28 13:40 ` [igt-dev] ✗ Fi.CI.BAT: failure for Remove libdrm in rendercopy (rev11) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200728121320.6358-17-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox