diff options
author | Jason Ekstrand <[email protected]> | 2019-05-22 22:44:59 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-08-06 02:05:28 +0000 |
commit | f6e7de41d7b15185b746b79f7ef601c9405adc95 (patch) | |
tree | d6ab5fd3860eb28d33c80c88ef7e45bb19d50987 /src/intel/vulkan/anv_pipeline.c | |
parent | f03512f90bccd920ddfc83ae4b52d662efbafc44 (diff) |
anv: Implement VK_EXT_line_rasterization
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 002ff00d538..38b05380c1b 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -1619,6 +1619,16 @@ copy_non_dynamic_state(struct anv_pipeline *pipeline, } } + const VkPipelineRasterizationLineStateCreateInfoEXT *line_state = + vk_find_struct_const(pCreateInfo->pRasterizationState->pNext, + PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT); + if (line_state) { + if (states & ANV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE) { + dynamic->line_stipple.factor = line_state->lineStippleFactor; + dynamic->line_stipple.pattern = line_state->lineStipplePattern; + } + } + pipeline->dynamic_state_mask = states; } |