i965: Enable SIMD16 mode for shaders with loops on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jan 2012 04:42:22 +0000 (20:42 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 14 Mar 2012 22:02:48 +0000 (15:02 -0700)
The hardware supports it; there's no reason not to.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 15eae43f487c3a39103d318a288be30b737f0e43..b4ef80b6546877ecf2b8dc2e4830ff8e728aa150 100644 (file)
@@ -1676,7 +1676,7 @@ fs_visitor::visit(ir_loop *ir)
 {
    fs_reg counter = reg_undef;
 
-   if (c->dispatch_width == 16) {
+   if (intel->gen < 6 && c->dispatch_width == 16) {
       fail("Can't support (non-uniform) control flow on 16-wide\n");
    }