summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-06 08:27:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-06 08:27:17 +0100
commit4fb7784e1e1b2b999c0c2420583e9c48eb1127ac (patch)
tree16be679a83fbb32e42334fb7e216f5ba4dcad2e3
parentd9344ab8d04fe4795a3a532c5c0e85dc11ecf968 (diff)
sna/gen3: Non-affine texcoords require space for 4 floats not 3.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen3_render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 131c2e59..5d7f894b 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -2321,17 +2321,17 @@ gen3_render_composite(struct sna *sna,
tmp->floats_per_vertex = 2;
if (tmp->src.gen3.type != SHADER_CONSTANT &&
tmp->src.gen3.type != SHADER_ZERO)
- tmp->floats_per_vertex += tmp->src.is_affine ? 2 : 3;
+ tmp->floats_per_vertex += tmp->src.is_affine ? 2 : 4;
if (tmp->mask.gen3.type != SHADER_NONE &&
tmp->mask.gen3.type != SHADER_CONSTANT)
- tmp->floats_per_vertex += tmp->mask.is_affine ? 2 : 3;
+ tmp->floats_per_vertex += tmp->mask.is_affine ? 2 : 4;
DBG(("%s: floats_per_vertex = 2 + %d + %d = %d\n", __FUNCTION__,
(tmp->src.gen3.type != SHADER_CONSTANT &&
tmp->src.gen3.type != SHADER_ZERO) ?
- tmp->src.is_affine ? 2 : 3 : 0,
+ tmp->src.is_affine ? 2 : 4 : 0,
(tmp->mask.gen3.type != SHADER_NONE &&
tmp->mask.gen3.type != SHADER_CONSTANT) ?
- tmp->mask.is_affine ? 2 : 3 : 0,
+ tmp->mask.is_affine ? 2 : 4 : 0,
tmp->floats_per_vertex));
tmp->blt = gen3_render_composite_blt;