[igt-dev] [PATCH i-g-t v4 21/21] tests/gem_ccs: Avoid writing png twice

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Jul 12 17:12:31 UTC 2023


As Karolina noticed we write source png twice what's just takes
time as source surface is not touched. Drop one png write.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Karolina Stolarek <karolina.stolarek at intel.com>
Reviewed-by: Karolina Stolarek <karolina.stolarek at intel.com>
---
 tests/i915/gem_ccs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/i915/gem_ccs.c b/tests/i915/gem_ccs.c
index 1a5f3674a0..f5d4ab3598 100644
--- a/tests/i915/gem_ccs.c
+++ b/tests/i915/gem_ccs.c
@@ -362,7 +362,6 @@ static void block_copy(int i915,
 	if (mid->compression)
 		igt_assert(memcmp(src->ptr, mid->ptr, src->size) != 0);
 
-	WRITE_PNG(i915, run_id, "src", &blt.src, width, height);
 	WRITE_PNG(i915, run_id, "mid", &blt.dst, width, height);
 
 	if (config->surfcopy && pext) {
-- 
2.34.1



More information about the igt-dev mailing list