radv: copy line stipple factor/pattern only if the state isn't dynamic

If line stipple is enabled and the state is dynamic we don't have to
copy factor/pattern to the dynamic state struct.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18007>
This commit is contained in:
Samuel Pitoiset
2022-08-11 14:13:02 +02:00
committed by Marge Bot
parent 1d92ab921b
commit 0ca33a6c0d

View File

@@ -2151,7 +2151,7 @@ radv_pipeline_init_dynamic_state(struct radv_graphics_pipeline *pipeline,
} }
} }
if (needed_states & RADV_DYNAMIC_LINE_STIPPLE) { if (states & RADV_DYNAMIC_LINE_STIPPLE) {
dynamic->line_stipple.factor = info->rs.line_stipple_factor; dynamic->line_stipple.factor = info->rs.line_stipple_factor;
dynamic->line_stipple.pattern = info->rs.line_stipple_pattern; dynamic->line_stipple.pattern = info->rs.line_stipple_pattern;
} }