mirror of https://gitlab.freedesktop.org/mesa/mesa
d3d12: Minor logging improvements
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28535>
This commit is contained in:
parent
33735585a9
commit
4a01ac1aa7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue