summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-23 18:51:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-23 22:33:42 +0100
commit60dbd5a5b6cd56b7a33eac3afebe2d94ac8579c7 (patch)
tree6eb8f7ff8589a8f3b87268ae7608f206f083b9ba /src
parentfd375da5caf34f93a4e87670bb0c70fec5b4c55c (diff)
sna: Document swizzling for DBG
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/blt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/blt.c b/src/sna/blt.c
index 4dbd9e86..b27c6832 100644
--- a/src/sna/blt.c
+++ b/src/sna/blt.c
@@ -487,16 +487,22 @@ void choose_memcpy_to_tiled_x(struct kgem *kgem, int swizzling)
{
switch (swizzling) {
default:
+ DBG(("%s: unknown swizzling, %d\n", __FUNCTION__, swizzling));
+ break;
case I915_BIT_6_SWIZZLE_NONE:
+ DBG(("%s: no swizzling\n", __FUNCTION__));
kgem->memcpy_to_tiled_x = memcpy_to_tiled_x__swizzle_0;
break;
case I915_BIT_6_SWIZZLE_9:
+ DBG(("%s: 6^9 swizzling\n", __FUNCTION__));
kgem->memcpy_to_tiled_x = memcpy_to_tiled_x__swizzle_9;
break;
case I915_BIT_6_SWIZZLE_9_10:
+ DBG(("%s: 6^9^10 swizzling\n", __FUNCTION__));
kgem->memcpy_to_tiled_x = memcpy_to_tiled_x__swizzle_9_10;
break;
case I915_BIT_6_SWIZZLE_9_11:
+ DBG(("%s: 6^9^11 swizzling\n", __FUNCTION__));
kgem->memcpy_to_tiled_x = memcpy_to_tiled_x__swizzle_9_11;
break;
}