summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-05-09 13:43:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-05-09 13:49:56 +0100
commitdebdcd6a09464251324238ccbd935a6ade265d94 (patch)
treea3610afb38b8804c8be9fbbab123c9e14c1a5767
parentc6e4088dcb261d89fa0065eb7d9b62eada049dbd (diff)
sna: Add DBG statements for choice of spans vertex emitter
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen4_vertex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/gen4_vertex.c b/src/sna/gen4_vertex.c
index cd366c96..a82f9618 100644
--- a/src/sna/gen4_vertex.c
+++ b/src/sna/gen4_vertex.c
@@ -2923,11 +2923,13 @@ unsigned gen4_choose_spans_emitter(struct sna *sna,
unsigned vb;
if (tmp->base.src.is_solid) {
+ DBG(("%s: solid source\n", __FUNCTION__));
tmp->prim_emit = emit_span_solid;
tmp->emit_boxes = emit_span_boxes_solid;
tmp->base.floats_per_vertex = 3;
vb = 1 << 2 | 1;
} else if (tmp->base.src.is_linear) {
+ DBG(("%s: linear source\n", __FUNCTION__));
#if defined(avx2)
if (sna->cpu_features & AVX2) {
tmp->prim_emit = emit_span_linear__avx2;
@@ -2947,6 +2949,7 @@ unsigned gen4_choose_spans_emitter(struct sna *sna,
tmp->base.floats_per_vertex = 3;
vb = 1 << 2 | 1;
} else if (tmp->base.src.transform == NULL) {
+ DBG(("%s: identity transform\n", __FUNCTION__));
#if defined(avx2)
if (sna->cpu_features & AVX2) {
tmp->prim_emit = emit_span_identity__avx2;
@@ -2969,6 +2972,7 @@ unsigned gen4_choose_spans_emitter(struct sna *sna,
tmp->base.src.scale[0] /= tmp->base.src.transform->matrix[2][2];
tmp->base.src.scale[1] /= tmp->base.src.transform->matrix[2][2];
if (!sna_affine_transform_is_rotation(tmp->base.src.transform)) {
+ DBG(("%s: simple (unrotated affine) transform\n", __FUNCTION__));
#if defined(avx2)
if (sna->cpu_features & AVX2) {
tmp->prim_emit = emit_span_simple__avx2;
@@ -2986,6 +2990,7 @@ unsigned gen4_choose_spans_emitter(struct sna *sna,
tmp->emit_boxes = emit_span_boxes_simple;
}
} else {
+ DBG(("%s: affine transform\n", __FUNCTION__));
#if defined(avx2)
if (sna->cpu_features & AVX2) {
tmp->prim_emit = emit_span_affine__avx2;
@@ -3006,6 +3011,7 @@ unsigned gen4_choose_spans_emitter(struct sna *sna,
tmp->base.floats_per_vertex = 4;
vb = 1 << 2 | 2;
} else {
+ DBG(("%s: projective transform\n", __FUNCTION__));
tmp->prim_emit = emit_composite_spans_primitive;
tmp->base.floats_per_vertex = 5;
vb = 1 << 2 | 3;