i915g: Allocate tmp for KILP
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 30 Dec 2011 09:33:26 +0000 (01:33 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Fri, 30 Dec 2011 09:33:26 +0000 (01:33 -0800)
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=44297

src/gallium/drivers/i915/i915_fpc_translate.c

index beb0e0d6390014d95fd33aa05eab5c28c0aba0df..5bfbfa0fa0508e3bd4131e81f0949bea102d627a 100644 (file)
@@ -658,6 +658,8 @@ i915_translate_instruction(struct i915_fp_compile *p,
       /* We emit an unconditional kill; we may want to revisit
        * if we ever implement conditionals.
        */
+      tmp = i915_get_utemp(p);
+
       i915_emit_texld(p,
                       tmp,                                   /* dest reg: a dummy reg */
                       A0_DEST_CHANNEL_ALL,                   /* dest writemask */