summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-08-30 09:39:36 +0100
committerLionel Landwerlin <[email protected]>2017-08-30 17:59:18 +0100
commit350ead0f26fa300fcf67a0119840c6873846665e (patch)
tree996beff546df3d555de45e9647806ce8d57b6cfe /src/mesa/drivers
parentb1c9ed25a55363f8d78eb952f8bd28160ed3453e (diff)
i965: drop unused brw->needs_unlit_centroid_workaround
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h9
2 files changed, 0 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 730e9d82e55..6441311d47e 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 0c2e02a7159..38f9b5fc670 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -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;