summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-12 11:54:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-12 11:54:02 +0100
commitf2a617dcc5fbeaf503db4777f0ec7b3d862085b9 (patch)
tree9cb85f68a2e6debef3d839459b092c1416294028 /src/sna/gen6_render.c
parentc2e19987c333de31b258a3af37a2ed1f63ef949a (diff)
sna: Use single precision for computing the texcoord scale factor
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r--src/sna/gen6_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index eb67fc67..6fb72757 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -2498,8 +2498,8 @@ gen6_render_copy(struct sna *sna, uint8_t alu,
gen6_get_card_format_for_depth(src->drawable.depth),
op->base.src.width = src->drawable.width;
op->base.src.height = src->drawable.height;
- op->base.src.scale[0] = 1./src->drawable.width;
- op->base.src.scale[1] = 1./src->drawable.height;
+ op->base.src.scale[0] = 1.f/src->drawable.width;
+ op->base.src.scale[1] = 1.f/src->drawable.height;
op->base.src.filter = SAMPLER_FILTER_NEAREST;
op->base.src.repeat = SAMPLER_EXTEND_NONE;