i965: Allow SIMD16 color writes on Ivybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Sep 2011 06:57:40 +0000 (23:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Sep 2011 07:52:43 +0000 (00:52 -0700)
Again, the check was needlessly specific: this works fine on Gen7.

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 60d79ef..e4746db 100644 (file)
@@ -1803,7 +1803,7 @@ fs_visitor::emit_color_write(int index, int first_color_mrf, fs_reg color)
    int reg_width = c->dispatch_width / 8;
    fs_inst *inst;
 
-   if (c->dispatch_width == 8 || intel->gen == 6) {
+   if (c->dispatch_width == 8 || intel->gen >= 6) {
       /* SIMD8 write looks like:
        * m + 0: r0
        * m + 1: r1