lvmpipe: Initialize all coordinates.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2010 01:15:17 +0000 (01:15 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2010 01:15:17 +0000 (01:15 +0000)
Fixes assertion failure with fp-incomplete-tex (fdo 24298).

src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c

index 61b033c9fcf0b762af6146f02b7ff4e83ba6ca8d..fb1eda4423ba4db3047ae131839be2135619e5c4 100644 (file)
@@ -361,6 +361,9 @@ emit_tex( struct lp_build_tgsi_soa_context *bld,
       if (projected)
          coords[i] = lp_build_mul(&bld->base, coords[i], oow);
    }
+   for (i = num_coords; i < 3; i++) {
+      coords[i] = bld->base.undef;
+   }
 
    bld->sampler->emit_fetch_texel(bld->sampler,
                                   bld->base.builder,