tu: Ignore line stipple dynamic state

At least in the current Vulkan spec there is no validation language
saying that it isn't valid to set this state if stippled lines aren't
supported, so it seems we have to just ignore it. Ignore it if the user
specifies a dynamic line stipple state and don't emit warnings if they
call CmdSetLineStippleEXT because zink will do this.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18912>
This commit is contained in:
Connor Abbott
2022-10-21 13:59:20 +02:00
committed by Marge Bot
parent 9061f5f57d
commit 9f7896685f
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -3070,7 +3070,6 @@ tu_CmdSetLineStippleEXT(VkCommandBuffer commandBuffer,
uint32_t lineStippleFactor,
uint16_t lineStipplePattern)
{
tu_stub();
}
VKAPI_ATTR void VKAPI_CALL
+2
View File
@@ -3701,6 +3701,8 @@ tu_pipeline_builder_parse_dynamic(struct tu_pipeline_builder *builder,
pipeline->dynamic_state_mask |= BIT(TU_DYNAMIC_STATE_VERTEX_INPUT) |
BIT(TU_DYNAMIC_STATE_VB_STRIDE);
break;
case VK_DYNAMIC_STATE_LINE_STIPPLE_EXT:
break;
case VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT:
pipeline->dynamic_state_mask |=
BIT(TU_DYNAMIC_STATE_PATCH_CONTROL_POINTS);