i965: drop unused brw->needs_unlit_centroid_workaround
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 30 Aug 2017 08:39:36 +0000 (09:39 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 30 Aug 2017 16:59:18 +0000 (17:59 +0100)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h

index 730e9d82e55f29b7a80bc891b8c9cc31344ced31..6441311d47e53ff534b633baea66db114b9eb634 100644 (file)
@@ -860,8 +860,6 @@ brwCreateContext(gl_api api,
 
    brw->has_hiz = devinfo->has_hiz_and_separate_stencil;
    brw->has_separate_stencil = devinfo->has_hiz_and_separate_stencil;
-   brw->needs_unlit_centroid_workaround =
-      devinfo->needs_unlit_centroid_workaround;
 
    brw->has_swizzling = screen->hw_has_swizzling;
 
index 0c2e02a71593c5c1cc66f710d37c2b27626093ac..38f9b5fc67061bb4313918bb9a78ab13af78e841 100644 (file)
@@ -750,15 +750,6 @@ struct brw_context
    bool has_separate_stencil;
    bool has_swizzling;
 
-   /**
-    * Some versions of Gen hardware don't do centroid interpolation correctly
-    * on unlit pixels, causing incorrect values for derivatives near triangle
-    * edges.  Enabling this flag causes the fragment shader to use
-    * non-centroid interpolation for unlit pixels, at the expense of two extra
-    * fragment shader instructions.
-    */
-   bool needs_unlit_centroid_workaround;
-
    /** Derived stencil states. */
    bool stencil_enabled;
    bool stencil_two_sided;