mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
rendercopy: Add a way to dump an .aub file with the rendercopy bos
v2 (by Ben): Remove libdrm dependency since intel-gpu-tools now requires a higher version anyway. Remove associated #ifdef ENABLE_AUB_DUMP Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
committed by
Ben Widawsky
parent
5038b7e4c2
commit
09e9f0b216
@@ -1216,6 +1216,16 @@ void igt_skip_on_simulation(void)
|
||||
igt_require(!igt_run_in_simulation());
|
||||
}
|
||||
|
||||
bool drmtest_dump_aub(void)
|
||||
{
|
||||
static int dump_aub = -1;
|
||||
|
||||
if (dump_aub == -1)
|
||||
dump_aub = env_set("IGT_DUMP_AUB", false);
|
||||
|
||||
return dump_aub;
|
||||
}
|
||||
|
||||
/* other helpers */
|
||||
void igt_exchange_int(void *array, unsigned i, unsigned j)
|
||||
{
|
||||
|
||||
@@ -304,6 +304,8 @@ bool igt_run_in_simulation(void);
|
||||
*/
|
||||
void igt_skip_on_simulation(void);
|
||||
|
||||
bool drmtest_dump_aub(void);
|
||||
|
||||
/* helpers based upon the libdrm buffer manager */
|
||||
void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
|
||||
void igt_trash_aperture(void);
|
||||
|
||||
Reference in New Issue
Block a user