[PATCH i-g-t 7/7] tests/xe_intel_bb: Dump do png without detiling

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Feb 28 14:54:07 UTC 2024


On my work on Lunarlake I often needed to inspect surface without
detiling. Replace dumping surface exactly how it looks in the memory.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>
---
 tests/intel/xe_intel_bb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
index ef12715dea..c3a4b5450e 100644
--- a/tests/intel/xe_intel_bb.c
+++ b/tests/intel/xe_intel_bb.c
@@ -913,9 +913,9 @@ static int render(struct buf_ops *bops, uint32_t tiling,
 	if (write_png) {
 		snprintf(name, sizeof(name) - 1,
 			 "render_dst_tiling_%d.png", tiling);
-		intel_buf_write_to_png(&src, "render_src_tiling_none.png");
-		intel_buf_write_to_png(&dst, name);
-		intel_buf_write_to_png(&final, "render_final_tiling_none.png");
+		intel_buf_raw_write_to_png(&src, "render_src_tiling_none.png");
+		intel_buf_raw_write_to_png(&dst, name);
+		intel_buf_raw_write_to_png(&final, "render_final_tiling_none.png");
 	}
 
 	/* We'll fail on src <-> final compare so just warn */
-- 
2.34.1



More information about the igt-dev mailing list