diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2014-12-26 00:04:10 -0700 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-03-09 12:47:42 +0800 |
commit | 57110b8d0b44a5c9930565364dac0ec86eea3cfc (patch) | |
tree | 55e792c2a07b306f5eb2d2e7c5dfa10ef41cb13b | |
parent | 592f4fe2d5220e41ad5431539d56d643d2245beb (diff) | |
download | libva-intel-driver-57110b8d0b44a5c9930565364dac0ec86eea3cfc.tar.gz libva-intel-driver-57110b8d0b44a5c9930565364dac0ec86eea3cfc.tar.bz2 libva-intel-driver-57110b8d0b44a5c9930565364dac0ec86eea3cfc.zip |
Add new debug option for aub dump
New VA debug option to dump aub file.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 9509ac69a5fdb6f60b471ebc32e767cecaa72268)
-rw-r--r-- | src/intel_driver.h | 1 | ||||
-rw-r--r-- | src/intel_memman.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/intel_driver.h b/src/intel_driver.h index f45c787..3715210 100644 --- a/src/intel_driver.h +++ b/src/intel_driver.h @@ -80,6 +80,7 @@ struct intel_batchbuffer; extern uint32_t g_intel_debug_option_flags; #define VA_INTEL_DEBUG_OPTION_ASSERT (1 << 0) #define VA_INTEL_DEBUG_OPTION_BENCH (1 << 1) +#define VA_INTEL_DEBUG_OPTION_DUMP_AUB (1 << 2) #define ASSERT_RET(value, fail_ret) do { \ if (!(value)) { \ diff --git a/src/intel_memman.c b/src/intel_memman.c index 7d56e96..03ed216 100644 --- a/src/intel_memman.c +++ b/src/intel_memman.c @@ -38,6 +38,12 @@ intel_memman_init(struct intel_driver_data *intel) assert(intel->bufmgr); intel_bufmgr_gem_enable_reuse(intel->bufmgr); + if (g_intel_debug_option_flags & VA_INTEL_DEBUG_OPTION_DUMP_AUB) { + drm_intel_bufmgr_gem_set_aub_filename(intel->bufmgr, + "va.aub"); + drm_intel_bufmgr_gem_set_aub_dump(intel->bufmgr, 1); + } + return True; } |