summaryrefslogtreecommitdiff
path: root/tools/aubdump.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2015-11-05 16:56:11 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2015-11-06 11:16:23 -0800
commit134e32378a242e846a6e553ad80317a4a56b13b9 (patch)
treefd26a52f28d7a890d236139a79ba12b66d7207b4 /tools/aubdump.c
parentbc37e0297c38348cd4e47b1dacc376bd94725ec2 (diff)
igt/intel_aubdump: Use the right ring
This prevents the simulator from barfing when it sees commands from another ring. I've been using this locally for a very long time. Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'tools/aubdump.c')
-rw-r--r--tools/aubdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index a17dc10f..d9ee7919 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -315,7 +315,7 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2)
{
struct drm_i915_gem_exec_object2 *exec_objects =
(struct drm_i915_gem_exec_object2 *) (uintptr_t) execbuffer2->buffers_ptr;
- uint32_t ring_flag = 0;
+ uint32_t ring_flag = execbuffer2->flags & I915_EXEC_RING_MASK;
uint32_t offset = gtt_size;
struct drm_i915_gem_exec_object2 *obj;
struct bo *bo, *batch_bo;