From 4a01ac1aa72d1d15384cd37b1de223c0fc61ae1f Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Sun, 31 Mar 2024 10:46:32 -0700 Subject: [PATCH] d3d12: Minor logging improvements Part-of: --- src/gallium/drivers/d3d12/d3d12_root_signature.cpp | 4 ++-- src/gallium/drivers/d3d12/d3d12_screen.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_root_signature.cpp b/src/gallium/drivers/d3d12/d3d12_root_signature.cpp index 97758c60899..f74118ab62a 100644 --- a/src/gallium/drivers/d3d12/d3d12_root_signature.cpp +++ b/src/gallium/drivers/d3d12/d3d12_root_signature.cpp @@ -216,7 +216,7 @@ create_root_signature(struct d3d12_context *ctx, struct d3d12_root_signature_key if (ctx->dev_config) { if (FAILED(ctx->dev_config->SerializeVersionedRootSignature(&root_sig_desc, &sig, &error))) { - debug_printf("D3D12SerializeRootSignature failed\n"); + debug_printf("D3D12SerializeRootSignature failed: %s\n", (char *)error->GetBufferPointer()); return NULL; } } else @@ -224,7 +224,7 @@ create_root_signature(struct d3d12_context *ctx, struct d3d12_root_signature_key { if (FAILED(ctx->D3D12SerializeVersionedRootSignature(&root_sig_desc, &sig, &error))) { - debug_printf("D3D12SerializeRootSignature failed\n"); + debug_printf("D3D12SerializeRootSignature failed: %s\n", (char *)error->GetBufferPointer()); return NULL; } } diff --git a/src/gallium/drivers/d3d12/d3d12_screen.cpp b/src/gallium/drivers/d3d12/d3d12_screen.cpp index c57ac12196c..9eda6d70069 100644 --- a/src/gallium/drivers/d3d12/d3d12_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_screen.cpp @@ -1425,24 +1425,24 @@ try_find_d3d12core_next_to_self(char *path, size_t path_arr_size) uint32_t path_size = GetModuleFileNameA((HINSTANCE)&__ImageBase, path, path_arr_size); if (!path_arr_size || path_size == path_arr_size) { - debug_printf("Unable to get path to self"); + debug_printf("Unable to get path to self\n"); return nullptr; } auto last_slash = strrchr(path, '\\'); if (!last_slash) { - debug_printf("Unable to get path to self"); + debug_printf("Unable to get path to self\n"); return nullptr; } *(last_slash + 1) = '\0'; if (strcat_s(path, path_arr_size, "D3D12Core.dll") != 0) { - debug_printf("Unable to get path to D3D12Core.dll next to self"); + debug_printf("Unable to get path to D3D12Core.dll next to self\n"); return nullptr; } if (GetFileAttributesA(path) == INVALID_FILE_ATTRIBUTES) { - debug_printf("No D3D12Core.dll exists next to self"); + debug_printf("No D3D12Core.dll exists next to self\n"); return nullptr; }