mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 14:50:24 +01:00
radv: make sure to reset the stipple line state when it's disabled
In a scenario like: CmdBindPipeline(stipple line enabled) CmdDraw() CmdBindPipeline(stipple line disabled) CmdDraw() The second draw wasn't resetting the stipple line state and this might have caused issues, though it's uncovered by VK CTS. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26429>
This commit is contained in:
parent
e88973fd02
commit
13dcbdcdf3
1 changed files with 0 additions and 3 deletions
|
|
@ -557,9 +557,6 @@ radv_pipeline_needed_dynamic_state(const struct radv_device *device, const struc
|
|||
(!state->ms || !state->ms->sample_locations_enable))
|
||||
states &= ~RADV_DYNAMIC_SAMPLE_LOCATIONS;
|
||||
|
||||
if (!(pipeline->dynamic_states & RADV_DYNAMIC_LINE_STIPPLE_ENABLE) && !state->rs->line.stipple.enable)
|
||||
states &= ~RADV_DYNAMIC_LINE_STIPPLE;
|
||||
|
||||
if (!has_color_att || !radv_pipeline_is_blend_enabled(pipeline, state->cb))
|
||||
states &= ~RADV_DYNAMIC_BLEND_CONSTANTS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue