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/gen7_cmd_buffer.c | |
parent | f03512f90bccd920ddfc83ae4b52d662efbafc44 (diff) |
anv: Implement VK_EXT_line_rasterization
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/gen7_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index bfbbb7793f5..c5281e527ef 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -237,6 +237,15 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer) } } + if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE) { + anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_LINE_STIPPLE), ls) { + ls.LineStipplePattern = d->line_stipple.pattern; + ls.LineStippleInverseRepeatCount = + 1.0f / MAX2(1, d->line_stipple.factor); + ls.LineStippleRepeatCount = d->line_stipple.factor; + } + } + if (cmd_buffer->state.gfx.dirty & (ANV_CMD_DIRTY_PIPELINE | ANV_CMD_DIRTY_RENDER_TARGETS | ANV_CMD_DIRTY_DYNAMIC_STENCIL_COMPARE_MASK | |