Often when debugging it is useful to force either use of the BLT or 3D
pipelines for copies.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
#define DBG_CAN_FLIP 1
#define DBG_CAN_XCHG 1
+#define DBG_FORCE_COPY -1 /* KGEM_BLT or KGEM_3D */
+
#if DRI2INFOREC_VERSION < 2
#error DRI2 version supported by the Xserver is too old
#endif
return;
}
+ if (DBG_FORCE_COPY != -1) {
+ DBG(("%s: forcing %d\n", __FUNCTION__, DBG_FORCE_COPY));
+ kgem_set_mode(&sna->kgem, DBG_FORCE_COPY, dst);
+ return;
+ }
+
if (sna->kgem.mode != KGEM_NONE) {
DBG(("%s: busy, not switching\n", __FUNCTION__));
return;