summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-01 17:54:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-01 21:19:22 +0000
commit392593e61dac3ac65ee8e32de492c4439413ee85 (patch)
tree509bdeed8cdb38c32ce1220bcaae90e5b4441369
parent9c0c04cac245db046ef17ff24c32e6ab93535f48 (diff)
sna/gen5: Help the compiler avoid an uncached read
Debug builds are excruitatingly slow as the compiler doesn't store the temporary in a register but uses an uncached readback instead. Maybe this will help... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen5_render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index bcba0d87..bccd3437 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -849,16 +849,14 @@ gen5_emit_composite_primitive_identity_source(struct sna *sna,
dst.p.y = r->dst.y + r->height;
v[0] = dst.f;
v[1] = (sx + r->width) * sf[0];
- v[2] = (sy + r->height) * sf[1];
+ v[5] = v[2] = (sy + r->height) * sf[1];
dst.p.x = r->dst.x;
v[3] = dst.f;
- v[4] = sx * sf[0];
- v[5] = v[2];
+ v[7] = v[4] = sx * sf[0];
dst.p.y = r->dst.y;
v[6] = dst.f;
- v[7] = v[4];
v[8] = sy * sf[1];
}