summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-02-20 12:11:50 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-06-10 17:52:34 +0100
commit1e4f63bbc8e9a23c90745e10027e2772bab15038 (patch)
treefa1a541ca968d03e49d0949a1bd6838a9befb6b2
parent59257580666cf5f5916bf989d94bace774030bd5 (diff)
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>
-rw-r--r--intel/intel_bufmgr_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 3c73068b..7b1ecf17 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -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())