From 2dbd8dba07e0c1ab4585dff3a4f85d172902b477 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Wed, 12 Jan 2022 14:09:47 +0100 Subject: [PATCH] vkd3d: Ignore unsupported execute indirect calls. Signed-off-by: Hans-Kristian Arntzen --- libs/vkd3d/command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index e4233e30..b573791e 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -9275,6 +9275,12 @@ static void d3d12_command_list_execute_indirect_state_template( unsigned int i; HRESULT hr; + if (!list->device->device_info.device_generated_commands_features_nv.deviceGeneratedCommands) + { + WARN("Ignoring unsupported state template execute indirect.\n"); + return; + } + /* To build device generated commands, we need to know the pipeline we're going to render with. */ if (!d3d12_command_list_update_graphics_pipeline(list)) return;