diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2015-08-25 14:22:48 -0700 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2015-08-25 14:23:11 -0700 |
commit | 07884e8a51d78ad5ba9887bffb5224a2186fa04c (patch) | |
tree | 8fa42487c4b1b3f72a867274c34227d10b635ad4 | |
parent | a5ea0c64c5ce673662249557b03c412fcc53e6c1 (diff) |
try to print the failing commandprint-fail
-rw-r--r-- | intel/intel_bufmgr_gem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 2723e21b4..a3f3a2d02 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -2251,6 +2251,11 @@ do_exec2(drm_intel_bo *bo, int used, drm_intel_context *ctx, drm_intel_gem_compute_batch_space(bufmgr_gem->exec_bos, bufmgr_gem->exec_count), (unsigned int) bufmgr_gem->gtt_size); + } else { + char comm[1024] = {0}; + assert(readlink("/proc/self/cmdline", comm, 1023) != -1); + fprintf(stderr, "ret=%d %s", ret, comm); + } } drm_intel_update_buffer_offsets2(bufmgr_gem); |