radv: check if dynamic line stipple state changed

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9458>
This commit is contained in:
Samuel Pitoiset
2021-03-05 14:18:22 +01:00
committed by Marge Bot
parent 892987e3a0
commit 077775f3ce
+4
View File
@@ -4718,6 +4718,10 @@ void radv_CmdSetLineStippleEXT(
RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
struct radv_cmd_state *state = &cmd_buffer->state;
if (state->dynamic.line_stipple.factor == lineStippleFactor &&
state->dynamic.line_stipple.pattern == lineStipplePattern)
return;
state->dynamic.line_stipple.factor = lineStippleFactor;
state->dynamic.line_stipple.pattern = lineStipplePattern;