[PATCH vkd3d 5/5] vkd3d: Set object names for Vulkan compute pipelines.

Józef Kucia joseph.kucia at gmail.com
Fri Feb 1 02:42:52 CST 2019


From: Józef Kucia <jkucia at codeweavers.com>

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 libs/vkd3d/state.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c
index ba4c06b96a51..5c7d30393211 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;
 }
 
-- 
2.19.2




More information about the wine-devel mailing list