From 4d7f759e434da834810ed400f8f7c417ef72bc62 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Tue, 17 Aug 2021 19:46:38 +0300 Subject: [PATCH] turnip: provide dummy CmdSetLogicOpEXT and CmdSetPatchControlPointsEXT Fixes: fd62e0b7996afde22447fd929a55b0cc89e9ab36 "tu: enable VK_EXT_extended_dynamic_state2" Fixes dEQP-VK.api.version_check.entry_points Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5243 Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/vulkan/tu_cmd_buffer.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index d29ec1d..d5ca6e1 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -2498,7 +2498,7 @@ tu_CmdSetStencilOpEXT(VkCommandBuffer commandBuffer, cmd->state.dirty |= TU_CMD_DIRTY_RB_STENCIL_CNTL; } -void +VKAPI_ATTR void VKAPI_CALL tu_CmdSetDepthBiasEnableEXT(VkCommandBuffer commandBuffer, VkBool32 depthBiasEnable) { @@ -2511,7 +2511,7 @@ tu_CmdSetDepthBiasEnableEXT(VkCommandBuffer commandBuffer, cmd->state.dirty |= TU_CMD_DIRTY_GRAS_SU_CNTL; } -void +VKAPI_ATTR void VKAPI_CALL tu_CmdSetPrimitiveRestartEnableEXT(VkCommandBuffer commandBuffer, VkBool32 primitiveRestartEnable) { @@ -2520,7 +2520,7 @@ tu_CmdSetPrimitiveRestartEnableEXT(VkCommandBuffer commandBuffer, cmd->state.primitive_restart_enable = primitiveRestartEnable; } -void +VKAPI_ATTR void VKAPI_CALL tu_CmdSetRasterizerDiscardEnableEXT(VkCommandBuffer commandBuffer, VkBool32 rasterizerDiscardEnable) { @@ -2536,6 +2536,20 @@ tu_CmdSetRasterizerDiscardEnableEXT(VkCommandBuffer commandBuffer, cmd->state.dirty |= TU_CMD_DIRTY_RASTERIZER_DISCARD; } +VKAPI_ATTR void VKAPI_CALL +tu_CmdSetLogicOpEXT(VkCommandBuffer commandBuffer, + VkLogicOp logicOp) +{ + tu_stub(); +} + +VKAPI_ATTR void VKAPI_CALL +tu_CmdSetPatchControlPointsEXT(VkCommandBuffer commandBuffer, + uint32_t patchControlPoints) +{ + tu_stub(); +} + static void tu_flush_for_access(struct tu_cache_state *cache, enum tu_cmd_access_mask src_mask, -- 2.7.4