From 9893b7f52c9d749ef6e2439328fbd47b9695d993 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 25 Jan 2021 15:15:22 +0100 Subject: [PATCH] vkd3d: Enable SM 6.3. Signed-off-by: Hans-Kristian Arntzen --- libs/vkd3d/device.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index a5b153fd..fc6dc606 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -4862,8 +4862,16 @@ static void d3d12_device_caps_init_shader_model(struct d3d12_device *device) /* SM 6.3 adds: * https://github.com/microsoft/DirectXShaderCompiler/wiki/Shader-Model-6.3 - * Ray tracing + * Ray tracing (lib_6_3 multi entry point targets). */ + if (device->d3d12_caps.max_shader_model == D3D_SHADER_MODEL_6_2 && + device->device_info.ray_tracing_pipeline_features.rayTracingPipeline && + device->vk_info.KHR_spirv_1_4) + { + /* SPIR-V 1.4 is required for lib_6_3 since that is required for RT. */ + device->d3d12_caps.max_shader_model = D3D_SHADER_MODEL_6_3; + TRACE("Enabling support for SM 6.3.\n"); + } /* SM 6.4 adds: * https://github.com/microsoft/DirectXShaderCompiler/wiki/Shader-Model-6.4