Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228653
b: refs/heads/master
c: ec57d26
h: refs/heads/master
i:
  228651: ca51f37
v: v3
  • Loading branch information
Daniel Vetter authored and Chris Wilson committed Oct 27, 2010
1 parent 31732ac commit 49396e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 201728429d6cf336cfd7483fcd1bce47291b2901
refs/heads/master: ec57d2602a985b54b53e53098f74fdefc24723af
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2775,7 +2775,7 @@ i915_gem_object_bind_to_gtt(struct drm_gem_object *obj,
BUG_ON(obj->write_domain & I915_GEM_GPU_DOMAINS);

obj_priv->gtt_offset = obj_priv->gtt_space->start;
trace_i915_gem_object_bind(obj, obj_priv->gtt_offset);
trace_i915_gem_object_bind(obj, obj_priv->gtt_offset, mappable);

return 0;
}
Expand Down
11 changes: 7 additions & 4 deletions trunk/drivers/gpu/drm/i915/i915_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,25 @@ TRACE_EVENT(i915_gem_object_create,

TRACE_EVENT(i915_gem_object_bind,

TP_PROTO(struct drm_gem_object *obj, u32 gtt_offset),
TP_PROTO(struct drm_gem_object *obj, u32 gtt_offset, bool mappable),

TP_ARGS(obj, gtt_offset),
TP_ARGS(obj, gtt_offset, mappable),

TP_STRUCT__entry(
__field(struct drm_gem_object *, obj)
__field(u32, gtt_offset)
__field(bool, mappable)
),

TP_fast_assign(
__entry->obj = obj;
__entry->gtt_offset = gtt_offset;
__entry->mappable = mappable;
),

TP_printk("obj=%p, gtt_offset=%08x",
__entry->obj, __entry->gtt_offset)
TP_printk("obj=%p, gtt_offset=%08x%s",
__entry->obj, __entry->gtt_offset,
__entry->mappable ? ", mappable" : "")
);

TRACE_EVENT(i915_gem_object_change_domain,
Expand Down

0 comments on commit 49396e6

Please sign in to comment.