summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen8_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-05 14:42:16 -0800
committerJason Ekstrand <[email protected]>2016-03-05 14:42:16 -0800
commit8502794c1232ea0654c879ce565fef72e3ab522d (patch)
tree6f27f24f7b646069defcfb4c49598ab610140bb3 /src/intel/vulkan/gen8_pipeline.c
parent7b348ab8a0d38b504f659a0b4b6c8aca1a52ea6b (diff)
anv/pipeline: Handle null wm_prog_data in 3DSTATE_CLIP
Diffstat (limited to 'src/intel/vulkan/gen8_pipeline.c')
-rw-r--r--src/intel/vulkan/gen8_pipeline.c4
1 files changed, 2 insertions, 2 deletions
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,