i965: Drop has_pln checks in unlit centroid workaround.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Jul 2016 00:17:14 +0000 (17:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Jul 2016 02:26:53 +0000 (19:26 -0700)
The unlit centroid workaround starts being necessary on Gen6, which
is the first platform with multisampling.  PLN exists on G45+, so all
platforms which need this workaround have PLN.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 446cf3a2539a086f5dc004d1b8d556901bad97c0..940f425b98ec9b99fa830bdb08463c857731997e 100644 (file)
@@ -1185,16 +1185,13 @@ fs_visitor::emit_general_interpolation(fs_reg *attr, const char *name,
                                delta_xy[centroid_to_pixel(bary)], interp);
                inst->predicate = BRW_PREDICATE_NORMAL;
                inst->predicate_inverse = true;
-               if (devinfo->has_pln)
-                  inst->no_dd_clear = true;
+               inst->no_dd_clear = true;
 
                inst = bld.emit(FS_OPCODE_LINTERP, *attr,
                                delta_xy[bary], interp);
                inst->predicate = BRW_PREDICATE_NORMAL;
                inst->predicate_inverse = false;
-               if (devinfo->has_pln)
-                  inst->no_dd_check = true;
-
+               inst->no_dd_check = true;
             } else {
                bld.emit(FS_OPCODE_LINTERP, *attr, delta_xy[bary], interp);
             }