i965/fs: Allow SIMD16 with control flow on Ivybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Sep 2011 06:57:39 +0000 (23:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Sep 2011 07:52:36 +0000 (00:52 -0700)
The check was designed to forbid it on old generations (Gen5/Ironlake),
not on new ones.  It just works on Gen7/Ivybridge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index df43be0555ae0386c977d373ebe6ec42faeb4ce1..60d79ef056cfdfa541e39f876c53be2d0705de4c 100644 (file)
@@ -1522,7 +1522,7 @@ fs_visitor::visit(ir_if *ir)
 {
    fs_inst *inst;
 
-   if (intel->gen != 6 && c->dispatch_width == 16) {
+   if (intel->gen < 6 && c->dispatch_width == 16) {
       fail("Can't support (non-uniform) control flow on 16-wide\n");
    }