this is a dynamic state, it's already out of the pipeline hash
also don't store to ctx
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11964>
bool vp_state_changed;
bool scissor_changed;
- float line_width;
float blend_constants[4];
bool sample_locations_changed;
}
if (line_width_needed(reduced_prim, rast_state->hw_state.polygon_mode)) {
- if (screen->info.feats.features.wideLines || ctx->line_width == 1.0f)
- vkCmdSetLineWidth(batch->state->cmdbuf, ctx->line_width);
+ if (screen->info.feats.features.wideLines || rast_state->line_width == 1.0f)
+ vkCmdSetLineWidth(batch->state->cmdbuf, rast_state->line_width);
else
debug_printf("BUG: wide lines not supported, needs fallback!");
}
ctx->gfx_pipeline_state.front_face = ctx->rast_state->front_face;
ctx->gfx_pipeline_state.dirty |= !zink_screen(pctx->screen)->info.have_EXT_extended_dynamic_state;
}
- if (ctx->line_width != ctx->rast_state->line_width) {
- ctx->line_width = ctx->rast_state->line_width;
- ctx->gfx_pipeline_state.dirty = true;
- }
if (ctx->rast_state->base.point_quad_rasterization != point_quad_rasterization)
ctx->dirty_shader_stages |= BITFIELD_BIT(PIPE_SHADER_FRAGMENT);
if (ctx->rast_state->base.scissor != scissor)