anv/pipeline: Handle null wm_prog_data in 3DSTATE_CLIP

This commit is contained in:
Jason Ekstrand 2016-03-05 14:42:16 -08:00
parent 7b348ab8a0
commit 8502794c12

View file

@ -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,