[Mesa-dev] [PATCH 9/9] anv/gen7_pipeline: Check for ksp0 when setting BarycentricInterpolationMode in 3DSTATE_WM

Jason Ekstrand jason at jlekstrand.net
Sat Oct 1 00:03:40 UTC 2016


On Sep 30, 2016 3:34 PM, "Anuj Phogat" <anuj.phogat at gmail.com> wrote:
>
> 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;

I believe this code is in a block that is already protected.

>
>           wm.MultisampleRasterizationMode        = samples > 1 ?
>                                                    MSRASTMODE_ON_PATTERN
: MSRASTMODE_OFF_PIXEL;
> --
> 2.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160930/b83ebacd/attachment.html>


More information about the mesa-dev mailing list