From a13282d661bb5af9e6aa61317924b340b0a650e8 Mon Sep 17 00:00:00 2001 From: Zbigniew Kempczyński Date: Fri, 11 Sep 2020 10:07:23 +0200 Subject: lib/intel_batchbuffer: dump bb to base64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code for dumping bb to log as base64 which can be used when something wrong happened. Signed-off-by: Zbigniew Kempczyński Cc: Dominik Grzegorzek Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- lib/intel_batchbuffer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/intel_batchbuffer.h') diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index c80eb97d..caa89dc6 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -433,6 +433,7 @@ struct intel_bb { int i915; int gen; bool debug; + bool dump_base64; bool enforce_relocs; uint32_t devid; uint32_t handle; @@ -486,6 +487,7 @@ int intel_bb_sync(struct intel_bb *ibb); void intel_bb_print(struct intel_bb *ibb); void intel_bb_dump(struct intel_bb *ibb, const char *filename); void intel_bb_set_debug(struct intel_bb *ibb, bool debug); +void intel_bb_set_dump_base64(struct intel_bb *ibb, bool dump); static inline uint64_t intel_bb_set_default_object_alignment(struct intel_bb *ibb, uint64_t alignment) -- cgit v1.2.3