Skip to content

Commit c3fdaef

Browse files
committed
Missing header
1 parent ed63a89 commit c3fdaef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runtime/d3d12compute.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include "device_interface.h"
4848
#include "gpu_context_common.h"
4949
#include "printer.h"
50+
#include "runtime_atomics.h"
5051
#include "scoped_mutex_lock.h"
5152

5253
#if !defined(INITGUID)
@@ -2027,8 +2028,9 @@ WEAK bool D3D12LoadDXC(void *uc) {
20272028

20282029
// Build full path: <exe_dir>\dxcompiler.dll
20292030
constexpr const char dll_name[] = "dxcompiler.dll";
2030-
char path[MAX_PATH];
2031-
static_assert(MAX_PATH > sizeof(dll_name), "path buffer too small");
2031+
constexpr size_t kMaxPath = 4096;
2032+
char path[kMaxPath];
2033+
static_assert(kMaxPath > sizeof(dll_name), "path buffer too small");
20322034

20332035
DWORD n = GetModuleFileNameA(nullptr, path, sizeof(path));
20342036
if (n > 0 && n < sizeof(path)) {

0 commit comments

Comments
 (0)