summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-02 10:43:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-02 10:43:03 +0100
commite8eb273bd6153c232a9ffc558e3b7fd4beaab01b (patch)
tree977360addfc466f17cc620972de019adc6848fcd
parent722afa6bc910a2ccfbb0442872a878d1b6b78315 (diff)
sna/gen7: Add DBG for ring switching
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen7_render.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 2ee5b6f6..50eb07ee 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -4233,8 +4233,11 @@ gen7_render_context_switch(struct kgem *kgem,
if (!new_mode)
return;
- if (kgem->mode)
+ if (kgem->mode) {
+ DBG(("%s: switch rings %d -> %d\n",
+ __FUNCTION__, kgem->mode, new_mode));
kgem_submit(kgem);
+ }
kgem->ring = new_mode;
}