diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-28 17:14:52 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-28 19:15:53 +0000 |
commit | 3fdc9923447538ed65bf9ffa189d7290ce804730 (patch) | |
tree | 9c4fde9fa2076995c317e36cd813342440e8bd7d /src/sna/gen4_vertex.h | |
parent | fdd6d222bc92b3e385f5d62f5e03dfd86f290e45 (diff) |
sna/gen4+: Trim an extraneous coordinate from solid span emission
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_vertex.h')
-rw-r--r-- | src/sna/gen4_vertex.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sna/gen4_vertex.h b/src/sna/gen4_vertex.h index 418bdef1..1d94ab46 100644 --- a/src/sna/gen4_vertex.h +++ b/src/sna/gen4_vertex.h @@ -26,10 +26,9 @@ gen4_choose_composite_vertex_buffer(const struct sna_composite_op *op) inline inline static uint32_t gen4_choose_spans_vertex_buffer(const struct sna_composite_op *op) { - DBG(("%s: id=%x (%d, 1)\n", __FUNCTION__, - 1 << 2 | (2+!op->src.is_affine), - 2 + !op->src.is_affine)); - return 1 << 2 | (2+!op->src.is_affine); + int id = op->src.is_solid ? 1 : 2 + !op->src.is_affine; + DBG(("%s: id=%x (%d, 1)\n", __FUNCTION__, 1 << 2 | id, id)); + return 1 << 2 | id; } void gen4_choose_composite_emitter(struct sna_composite_op *tmp); |