summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-14 14:42:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-14 14:42:25 +0000
commit11e2802528aed4ef9ffc8b75045c72ac641e54b1 (patch)
treee1384f1e4cd1541e18fbe7790eee970540d6b36d /src
parent20832494be06da9ebc4801647521f95e092188fc (diff)
sna: Add handle info to sync DBG
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/kgem.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 538231f8..34ea2120 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -4769,14 +4769,17 @@ struct kgem_bo *kgem_create_map(struct kgem *kgem,
void kgem_bo_sync__cpu(struct kgem *kgem, struct kgem_bo *bo)
{
+ DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
assert(bo->proxy == NULL);
kgem_bo_submit(kgem, bo);
if (bo->domain != DOMAIN_CPU) {
struct drm_i915_gem_set_domain set_domain;
- DBG(("%s: SYNC: needs_flush? %d, domain? %d, busy? %d\n", __FUNCTION__,
- bo->needs_flush, bo->domain, __kgem_busy(kgem, bo->handle)));
+ DBG(("%s: SYNC: handle=%d, needs_flush? %d, domain? %d, busy? %d\n",
+ __FUNCTION__, bo->handle,
+ bo->needs_flush, bo->domain,
+ __kgem_busy(kgem, bo->handle)));
VG_CLEAR(set_domain);
set_domain.handle = bo->handle;
@@ -4792,6 +4795,7 @@ void kgem_bo_sync__cpu(struct kgem *kgem, struct kgem_bo *bo)
void kgem_bo_sync__cpu_full(struct kgem *kgem, struct kgem_bo *bo, bool write)
{
+ DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
assert(bo->proxy == NULL);
if (write || bo->needs_flush)
@@ -4800,8 +4804,10 @@ void kgem_bo_sync__cpu_full(struct kgem *kgem, struct kgem_bo *bo, bool write)
if (bo->domain != DOMAIN_CPU) {
struct drm_i915_gem_set_domain set_domain;
- DBG(("%s: SYNC: needs_flush? %d, domain? %d, busy? %d\n", __FUNCTION__,
- bo->needs_flush, bo->domain, __kgem_busy(kgem, bo->handle)));
+ DBG(("%s: SYNC: handle=%d, needs_flush? %d, domain? %d, busy? %d\n",
+ __FUNCTION__, bo->handle,
+ bo->needs_flush, bo->domain,
+ __kgem_busy(kgem, bo->handle)));
VG_CLEAR(set_domain);
set_domain.handle = bo->handle;
@@ -4818,14 +4824,17 @@ void kgem_bo_sync__cpu_full(struct kgem *kgem, struct kgem_bo *bo, bool write)
void kgem_bo_sync__gtt(struct kgem *kgem, struct kgem_bo *bo)
{
+ DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
assert(bo->proxy == NULL);
kgem_bo_submit(kgem, bo);
if (bo->domain != DOMAIN_GTT) {
struct drm_i915_gem_set_domain set_domain;
- DBG(("%s: SYNC: needs_flush? %d, domain? %d, busy? %d\n", __FUNCTION__,
- bo->needs_flush, bo->domain, __kgem_busy(kgem, bo->handle)));
+ DBG(("%s: SYNC: handle=%d, needs_flush? %d, domain? %d, busy? %d\n",
+ __FUNCTION__, bo->handle,
+ bo->needs_flush, bo->domain,
+ __kgem_busy(kgem, bo->handle)));
VG_CLEAR(set_domain);
set_domain.handle = bo->handle;