intel/aub: Return early if we disable aub dumps

No need to prepare the .aub header and dump in that case, it'll be
done with the next call with true.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
main
Damien Lespiau 2013-02-20 12:11:50 +00:00
parent 5925758066
commit 1e4f63bbc8
1 changed files with 1 additions and 0 deletions

View File

@ -2885,6 +2885,7 @@ drm_intel_bufmgr_gem_set_aub_dump(drm_intel_bufmgr *bufmgr, int enable)
fclose(bufmgr_gem->aub_file);
bufmgr_gem->aub_file = NULL;
}
return;
}
if (geteuid() != getuid())