From 257ac5c3a1cd03368cb7e196df02f9a341ca1869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Fri, 1 Feb 2019 09:42:52 +0100 Subject: [PATCH] vkd3d: Set object names for Vulkan compute pipelines. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- libs/vkd3d/state.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c index ba4c06b9..5c7d3039 100644 --- a/libs/vkd3d/state.c +++ b/libs/vkd3d/state.c @@ -1195,6 +1195,12 @@ static HRESULT STDMETHODCALLTYPE d3d12_pipeline_state_SetName(ID3D12PipelineStat TRACE("iface %p, name %s.\n", iface, debugstr_w(name, state->device->wchar_size)); + if (d3d12_pipeline_state_is_compute(state)) + { + return vkd3d_set_vk_object_name(state->device, (uint64_t)state->u.compute.vk_pipeline, + VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT, name); + } + return name ? S_OK : E_INVALIDARG; }