From: Jason Ekstrand Date: Sat, 5 Mar 2016 22:42:16 +0000 (-0800) Subject: anv/pipeline: Handle null wm_prog_data in 3DSTATE_CLIP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8502794c1232ea0654c879ce565fef72e3ab522d;p=mesa.git anv/pipeline: Handle null wm_prog_data in 3DSTATE_CLIP --- diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c index 8471fc733ba..10dd6457fbc 100644 --- a/src/intel/vulkan/gen8_pipeline.c +++ b/src/intel/vulkan/gen8_pipeline.c @@ -344,8 +344,8 @@ genX(graphics_pipeline_create)( pCreateInfo->pRasterizationState->rasterizerDiscardEnable ? REJECT_ALL : NORMAL, - .NonPerspectiveBarycentricEnable = - (wm_prog_data->barycentric_interp_modes & 0x38) != 0, + .NonPerspectiveBarycentricEnable = wm_prog_data ? + (wm_prog_data->barycentric_interp_modes & 0x38) != 0 : 0, .TriangleStripListProvokingVertexSelect = 0, .LineStripListProvokingVertexSelect = 0,