anv: provide dummy vkCmdSetPatchControlPointsEXT
authorTapani Pälli <tapani.palli@intel.com>
Mon, 21 Jun 2021 16:50:36 +0000 (19:50 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 22 Jun 2021 06:14:46 +0000 (09:14 +0300)
This makes dEQP-VK.api.version_check.entry_points pass and matches how
other drivers are handling this case. We do not support the feature but
still need to provide a dummy entrypoint.

v2: throw error if/when called (Jason)

Fixes: 0d031d1da34 ("anv: toggle on VK_EXT_extended_dynamic_state2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11503>

src/intel/vulkan/anv_cmd_buffer.c

index e53a3c0..7001a33 100644 (file)
@@ -557,6 +557,14 @@ void anv_CmdSetLogicOpEXT(
    cmd_buffer->state.gfx.dirty |= ANV_CMD_DIRTY_DYNAMIC_LOGIC_OP;
 }
 
+void anv_CmdSetPatchControlPointsEXT(
+    VkCommandBuffer                             commandBuffer,
+    uint32_t                                    patchControlPoints)
+{
+   ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
+   anv_batch_set_error(&cmd_buffer->batch, VK_ERROR_FEATURE_NOT_PRESENT);
+}
+
 void anv_CmdSetViewport(
     VkCommandBuffer                             commandBuffer,
     uint32_t                                    firstViewport,