summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2009-02-10 16:36:33 -0500
committerYounes Manton <[email protected]>2009-02-10 16:36:33 -0500
commit14d808f8fdc41a26cea5264e47a24c903e54ce93 (patch)
tree353b2660b8e76e62518294f63979832a185bf4c7 /src/gallium/drivers/nv04
parentc2be521d24eddb907ff556c0a8ec854a157ef9bc (diff)
nouveau: nv40 swizzled mipmap fixes.
Diffstat (limited to 'src/gallium/drivers/nv04')
-rw-r--r--src/gallium/drivers/nv04/nv04_surface_2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv04/nv04_surface_2d.c b/src/gallium/drivers/nv04/nv04_surface_2d.c
index 85308496895..230cfd17dd9 100644
--- a/src/gallium/drivers/nv04/nv04_surface_2d.c
+++ b/src/gallium/drivers/nv04/nv04_surface_2d.c
@@ -105,8 +105,8 @@ nv04_surface_copy_swizzle(struct nv04_surface_2d *ctx,
const unsigned max_h = 1024;
const unsigned sub_w = w > max_w ? max_w : w;
const unsigned sub_h = h > max_h ? max_h : h;
- unsigned cx = 0;
- unsigned cy = 0;
+ unsigned cx;
+ unsigned cy;
/* POT or GTFO */
assert(!(w & (w - 1)) && !(h & (h - 1)));