diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-21 01:17:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-21 01:23:26 +0000 |
commit | d21e80433f2574fe96036ad1d563515406a1946f (patch) | |
tree | 3fc626b1dfb984b9f36ceccb41e9c3751d03d7ac | |
parent | 20006a9ae7f993f02c45ccbc1e414d74bfee3acd (diff) |
sna/gen3: Add DBG markup for tracking target state
In particular for when we switch to a new destination and mark it dirty.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen3_render.c | 3 | ||||
-rw-r--r-- | src/sna/kgem.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index f749afb4..4b61f65d 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -1298,6 +1298,9 @@ static void gen3_emit_target(struct sna *sna, if (bo->unique_id != state->current_dst) { uint32_t v; + DBG(("%s: setting new target id=%d, handle=%d\n", + __FUNCTION__, bo->unique_id, bo->handle)); + OUT_BATCH(_3DSTATE_BUF_INFO_CMD); OUT_BATCH(BUF_3D_ID_COLOR_BACK | gen3_buf_tiling(bo->tiling) | diff --git a/src/sna/kgem.h b/src/sna/kgem.h index b85625f9..6800b64a 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -421,6 +421,7 @@ static inline bool kgem_bo_is_dirty(struct kgem_bo *bo) static inline void kgem_bo_mark_dirty(struct kgem_bo *bo) { + DBG_HDR(("%s: handle=%d\n", __FUNCTION__, bo->handle)); if (bo->proxy) bo = bo->proxy; bo->dirty = true; |