[Mesa-dev] [PATCH 9/9] anv/gen7_pipeline: Check for ksp0 when setting BarycentricInterpolationMode in 3DSTATE_WM
Anuj Phogat
anuj.phogat at gmail.com
Fri Sep 30 22:33:17 UTC 2016
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/intel/vulkan/gen7_pipeline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 4bab0bc..e804002 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -273,7 +273,8 @@ genX(graphics_pipeline_create)(
wm.EarlyDepthStencilControl = EDSC_NORMAL;
}
- wm.BarycentricInterpolationMode = wm_prog_data->barycentric_interp_modes;
+ wm.BarycentricInterpolationMode = pipeline->ps_ksp0 == NO_KERNEL ?
+ 0 : wm_prog_data->barycentric_interp_modes;
wm.MultisampleRasterizationMode = samples > 1 ?
MSRASTMODE_ON_PATTERN : MSRASTMODE_OFF_PIXEL;
--
2.5.5
More information about the mesa-dev
mailing list