i965: Disable register spilling on gen6 until it's fixed.
authorEric Anholt <eric@anholt.net>
Tue, 26 Oct 2010 21:49:38 +0000 (14:49 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 26 Oct 2010 22:07:25 +0000 (15:07 -0700)
Avoids GPU hang on glsl-fs-convolution-1.

src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp

index d7acc30fc464947bd2029d89e1c03c59928d45c2..bbb210cd449bdc71b4ff521dd63644e499a3b5b8 100644 (file)
@@ -225,7 +225,7 @@ fs_visitor::assign_regs()
        * loop back into here to try again.
        */
       int reg = choose_spill_reg(g);
-      if (reg == -1) {
+      if (reg == -1 || intel->gen >= 6) {
         this->fail = true;
       } else {
         spill_reg(reg);