All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Subject: [igt-dev] [PATCH i-g-t 16/24] tests/api_intel_bb: Add compressed->compressed copy
Date: Thu, 22 Oct 2020 11:58:59 +0200	[thread overview]
Message-ID: <20201022095907.34225-17-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20201022095907.34225-1-zbigniew.kempczynski@intel.com>

Check aux pagetables are working when more than one compressed
buffers are added.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/api_intel_bb.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 9882fb99..44ebd9cc 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -1245,7 +1245,7 @@ static void render_ccs(struct buf_ops *bops)
 	struct intel_bb *ibb;
 	const int width = 1024;
 	const int height = 1024;
-	struct intel_buf src, dst, final;
+	struct intel_buf src, dst, dst2, final;
 	int i915 = buf_ops_get_fd(bops);
 	uint32_t fails = 0;
 	uint32_t compressed = 0;
@@ -1260,6 +1260,8 @@ static void render_ccs(struct buf_ops *bops)
 			 I915_COMPRESSION_NONE);
 	scratch_buf_init(bops, &dst, width, height, I915_TILING_Y,
 			 I915_COMPRESSION_RENDER);
+	scratch_buf_init(bops, &dst2, width, height, I915_TILING_Y,
+			 I915_COMPRESSION_RENDER);
 	scratch_buf_init(bops, &final, width, height, I915_TILING_NONE,
 			 I915_COMPRESSION_NONE);
 
@@ -1279,6 +1281,12 @@ static void render_ccs(struct buf_ops *bops)
 	render_copy(ibb,
 		    &dst,
 		    0, 0, width, height,
+		    &dst2,
+		    0, 0);
+
+	render_copy(ibb,
+		    &dst2,
+		    0, 0, width, height,
 		    &final,
 		    0, 0);
 
@@ -1294,12 +1302,15 @@ static void render_ccs(struct buf_ops *bops)
 	if (write_png) {
 		intel_buf_write_to_png(&src, "render-ccs-src.png");
 		intel_buf_write_to_png(&dst, "render-ccs-dst.png");
+		intel_buf_write_to_png(&dst2, "render-ccs-dst2.png");
 		intel_buf_write_aux_to_png(&dst, "render-ccs-dst-aux.png");
+		intel_buf_write_aux_to_png(&dst2, "render-ccs-dst2-aux.png");
 		intel_buf_write_to_png(&final, "render-ccs-final.png");
 	}
 
 	intel_buf_close(bops, &src);
 	intel_buf_close(bops, &dst);
+	intel_buf_close(bops, &dst2);
 	intel_buf_close(bops, &final);
 
 	igt_assert_f(fails == 0, "render-ccs fails: %d\n", fails);
-- 
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-10-22  9:59 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-22  9:58 [igt-dev] [PATCH i-g-t 00/24] Introduce IGT allocator Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 01/24] lib/igt_list: igt_hlist implementation Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 02/24] lib/igt_map: Introduce igt_map Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 03/24] lib/igt_core: Track child process pid and tid Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 04/24] lib/intel_allocator_simple: Add simple allocator Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 05/24] lib/intel_allocator_random: Add random allocator Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 06/24] lib/intel_allocator: Add intel_allocator core Zbigniew Kempczyński
2020-10-22 10:09   ` Petri Latvala
2020-10-22 10:13     ` Chris Wilson
2020-10-22 10:14   ` Chris Wilson
2020-10-22 15:51     ` Jani Nikula
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 07/24] lib/intel_allocator: Try to stop smoothly instead of deinit Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 08/24] lib/intel_allocator_msgchannel: Scale to 4k of parallel clients Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 09/24] lib/intel_bufops: Removes handle from allocator, change size Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 10/24] lib/intel_bufops: Add init with handle and size function Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 11/24] lib/intel_batchbuffer: Integrate intel_bb with allocator Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 12/24] lib/intel_batchbuffer: Add tracking intel_buf to intel_bb Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 13/24] lib/intel_aux_pgtable: Get addresses for aux table from an allocator Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 14/24] lib/igt_fb: Initialize intel_buf with same size as fb Zbigniew Kempczyński
2020-10-22  9:58 ` [igt-dev] [PATCH i-g-t 15/24] tests/api_intel_bb: Modify test to verify intel_bb with allocator Zbigniew Kempczyński
2020-10-22  9:58 ` Zbigniew Kempczyński [this message]
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 17/24] tests/api_intel_allocator: Simple allocator test suite Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 18/24] tests/gem|kms: Remove intel_bb from fixture Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 19/24] tests/gem_mmap_offset: Use intel_buf wrapper code instead direct Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 20/24] tests/gem_ppgtt: Adopt test to use intel_bb with allocator Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 21/24] tests/gem_render_copy_redux: Adopt to use with intel_bb and allocator Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 22/24] tests/perf.c: Remove buffer from batch Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 23/24] tests/gem_linear_blits: Use intel allocator Zbigniew Kempczyński
2020-10-22  9:59 ` [igt-dev] [PATCH i-g-t 24/24] lib/intel_batchbuffer.c: Debug bb in CI Zbigniew Kempczyński
2020-10-22 10:51 ` [igt-dev] ✓ Fi.CI.BAT: success for Introduce IGT allocator Patchwork
2020-10-22 14:04 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20201022095907.34225-17-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.