dzn: Support dynamic line width

.wideLines = false, which forbids the user to set the line width
to something different than 1. We're thus safe to claim support
for dynamic line width and do nothing in CmdSetLineWidth() other
than checking the value passed is 1.0f.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16971>
This commit is contained in:
Boris Brezillon
2022-06-14 00:11:11 -07:00
committed by Marge Bot
parent 7d9afb93cc
commit 1acf0b4bd4
+3
View File
@@ -1168,6 +1168,9 @@ dzn_graphics_pipeline_create(struct dzn_device *device,
if (ret)
goto out;
break;
case VK_DYNAMIC_STATE_LINE_WIDTH:
/* Nothing to do since we just support lineWidth = 1. */
break;
default: unreachable("Unsupported dynamic state");
}
}