vkd3d: Ignore unsupported execute indirect calls.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2022-01-12 14:09:47 +01:00
parent 08492316af
commit 2dbd8dba07
1 changed files with 6 additions and 0 deletions

View File

@ -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;