Changeset 107544 in vbox
- Timestamp:
- Jan 8, 2025 5:50:33 PM (10 days ago)
- Location:
- trunk/src/libs/dxvk-2.3.1
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/dxvk-2.3.1/Makefile.kmk
r106061 r107544 39 39 # 40 40 VBOX_PATH_DXVK := $(PATH_SUB_CURRENT) 41 ifeq ($(KBUILD_TARGET),win) 42 VBOX_DXVK_PLATFORM = DXVK_PLATFORM_WINDOWS 43 VBOX_DXVK_CXXFLAGS_WIN = -GR # DXVK uses RTTI 44 VBOX_DXVK_CXXFLAGS_WIN += -wd4101 # 'e': unreferenced local variable 45 VBOX_DXVK_CXXFLAGS_WIN += -wd4146 # unary minus operator applied to unsigned type, result still unsigned 46 VBOX_DXVK_CXXFLAGS_WIN += -wd4265 # 'dxvk::DxgiMonitorInfo': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly 47 VBOX_DXVK_CXXFLAGS_WIN += -wd4355 # 'this': used in base member initializer list 48 VBOX_DXVK_CXXFLAGS_WIN += -wd4456 # declaration of 'deviceId' hides previous local declaration 49 VBOX_DXVK_CXXFLAGS_WIN += -wd4457 # declaration of 'extent' hides function parameter 50 VBOX_DXVK_CXXFLAGS_WIN += -wd4458 # declaration of 'Srgb' hides class member 51 VBOX_DXVK_CXXFLAGS_WIN += -wd4701 # potentially uninitialized local variable 'vec0' used 52 VBOX_DXVK_CXXFLAGS_WIN += -wd4800 # Implicit conversion from 'VkBool32' to bool. Possible information loss 53 VBOX_DXVK_CXXFLAGS_WIN += -wd4805 # '&=': unsafe mix of type 'bool' and type 'BOOL' in operation 54 VBOX_DXVK_CXXFLAGS_WIN += -wd4946 # reinterpret_cast used between related classes: 'dxvk::D3D9DeviceEx' and 'IDirect3DDevice9Ex' 55 VBOX_DXVK_CXXFLAGS_WIN += -wd5039 # pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 56 VBOX_DXVK_CXXFLAGS_WIN += -wd5041 # 'DefaultFrameLatency': out-of-line definition for constexpr static data member is not needed and is deprecated in C++17 57 VBOX_DXVK_CXXFLAGS_WIN += -wd5204 # class has virtual functions, but its trivial destructor is not virtual 58 VBOX_DXVK_CXXFLAGS_WIN += -wd5219 # implicit conversion from 'int' to 'float', possible loss of data 59 VBOX_DXVK_CXXFLAGS_WIN += -wd5264 # 'MaxPendingSubmits': 'const' variable is not used 60 VBOX_DXVK_CXXFLAGS_WIN += -wd5267 # definition of implicit copy constructor for 'dxvk::DxvkSparseBindSubmission' is deprecated because it has a user-provided destructor 61 else 62 VBOX_DXVK_PLATFORM = DXVK_PLATFORM_LINUX 63 endif 41 64 42 65 # The HLSL to Spir-V shader compiler … … 80 103 _WIN32_WINNT=0xa00 81 104 VBox-DxVkNativeUtil_DEFS += \ 82 DXVK_PLATFORM_LINUX\105 $(VBOX_DXVK_PLATFORM) \ 83 106 DXVK_WSI_HEADLESS 84 107 VBox-DxVkNativeUtil_CXXFLAGS.linux += \ … … 86 109 VBox-DxVkNativeUtil_CXXFLAGS.darwin += \ 87 110 -std=c++17 111 VBox-DxVkNativeUtil_CXXFLAGS.win += \ 112 $(VBOX_DXVK_CXXFLAGS_WIN) 88 113 VBox-DxVkNativeUtil_INCS = \ 89 114 $(VBOX_PATH_DXVK) \ … … 91 116 $(VBOX_PATH_DXVK)/src/util/ \ 92 117 $(VBOX_PATH_DXVK)/include/vulkan/include \ 93 $(VBOX_PATH_DXVK)/include/spirv/include \ 118 $(VBOX_PATH_DXVK)/include/spirv/include 119 ifneq ($(KBUILD_TARGET),win) 120 VBox-DxVkNativeUtil_INCS += \ 94 121 $(VBOX_PATH_DXVK)/include/native/ \ 95 122 $(VBOX_PATH_DXVK)/include/native/windows \ 96 123 $(VBOX_PATH_DXVK)/include/native/directx 124 endif 97 125 VBox-DxVkNativeUtil_SOURCES = \ 98 126 src/util/util_env.cpp \ … … 168 196 _WIN32_WINNT=0xa00 169 197 VBox-DxVkNativeDxVk_DEFS += \ 170 DXVK_PLATFORM_LINUX\198 $(VBOX_DXVK_PLATFORM) \ 171 199 DXVK_WSI_HEADLESS 172 200 VBox-DxVkNativeDxVk_CXXFLAGS.linux += \ … … 174 202 VBox-DxVkNativeDxVk_CXXFLAGS.darwin += \ 175 203 -std=c++17 204 VBox-DxVkNativeDxVk_CXXFLAGS.win += \ 205 $(VBOX_DXVK_CXXFLAGS_WIN) 176 206 VBox-DxVkNativeDxVk_INCS = \ 177 207 $(VBOX_PATH_DXVK) \ … … 179 209 $(VBOX_PATH_DXVK)/src/util/ \ 180 210 $(VBOX_PATH_DXVK)/include/vulkan/include \ 181 $(VBOX_PATH_DXVK)/include/spirv/include \ 211 $(VBOX_PATH_DXVK)/include/spirv/include 212 ifneq ($(KBUILD_TARGET),win) 213 VBox-DxVkNativeDxVk_INCS += \ 182 214 $(VBOX_PATH_DXVK)/include/native/ \ 183 215 $(VBOX_PATH_DXVK)/include/native/windows \ 184 216 $(VBOX_PATH_DXVK)/include/native/directx 217 endif 185 218 VBox-DxVkNativeDxVk_SOURCES = \ 186 219 src/dxvk/dxvk_adapter.cpp \ … … 300 333 _WIN32_WINNT=0xa00 301 334 VBox-DxVkNativeD3D11_DEFS += \ 302 DXVK_PLATFORM_LINUX\335 $(VBOX_DXVK_PLATFORM) \ 303 336 DXVK_WSI_HEADLESS 304 337 VBox-DxVkNativeD3D11_CXXFLAGS.linux += \ … … 306 339 VBox-DxVkNativeD3D11_CXXFLAGS.darwin += \ 307 340 -std=c++17 341 VBox-DxVkNativeD3D11_CXXFLAGS.win += \ 342 $(VBOX_DXVK_CXXFLAGS_WIN) 308 343 VBox-DxVkNativeD3D11_INCS = \ 309 344 $(VBOX_PATH_DXVK) \ … … 311 346 $(VBOX_PATH_DXVK)/src/util/ \ 312 347 $(VBOX_PATH_DXVK)/include/vulkan/include \ 313 $(VBOX_PATH_DXVK)/include/spirv/include \ 348 $(VBOX_PATH_DXVK)/include/spirv/include 349 ifneq ($(KBUILD_TARGET),win) 350 VBox-DxVkNativeD3D11_INCS += \ 314 351 $(VBOX_PATH_DXVK)/include/native/ \ 315 352 $(VBOX_PATH_DXVK)/include/native/windows \ 316 353 $(VBOX_PATH_DXVK)/include/native/directx 354 endif 317 355 VBox-DxVkNativeD3D11_SOURCES = \ 318 356 src/dxgi/dxgi_format.cpp \ … … 387 425 $(VBOX_PATH_DXVK) \ 388 426 $(VBOX_PATH_DXVK)/include/ \ 389 $(VBOX_PATH_DXVK)/src/util/ \ 427 $(VBOX_PATH_DXVK)/src/util/ 428 ifneq ($(KBUILD_TARGET),win) 429 VBoxDxVk_INCS += \ 390 430 $(VBOX_PATH_DXVK)/include/native/ \ 391 431 $(VBOX_PATH_DXVK)/include/native/windows \ 392 432 $(VBOX_PATH_DXVK)/include/native/directx 433 endif 393 434 VBoxDxVk_CXXFLAGS.linux += \ 394 435 -std=c++17 436 VBoxDxVk_CXXFLAGS.win += \ 437 $(VBOX_DXVK_CXXFLAGS_WIN) 395 438 VBoxDxVk_SOURCES = \ 396 439 VBoxDxVkDeps.cpp 440 VBoxDxVk_SOURCES.win = \ 441 VBoxDxVk.def 397 442 VBoxDxVk_LIBS = \ 398 443 $(PATH_STAGE_LIB)/VBox-DxVkNativeD3D11$(VBOX_SUFF_LIB) \ -
trunk/src/libs/dxvk-2.3.1/include/native/wsi/native_wsi.h
r105107 r107544 8 8 #include "wsi/native_glfw.h" 9 9 #elif DXVK_WSI_HEADLESS 10 #if defined(VBOX) && defined(_WIN32) 11 #include "native/wsi/native_headless.h" 12 #else 10 13 #include "wsi/native_headless.h" 14 #endif 11 15 #else 12 16 #error Unknown wsi! -
trunk/src/libs/dxvk-2.3.1/src/dxvk/dxvk_instance.cpp
r105107 r107544 36 36 m_extProviders.push_back(&DxvkPlatformExts::s_instance); 37 37 #ifdef _WIN32 38 #ifndef VBOX 38 39 m_extProviders.push_back(&VrInstance::s_instance); 39 40 m_extProviders.push_back(&DxvkXrProvider::s_instance); 41 #endif 40 42 #endif 41 43 -
trunk/src/libs/dxvk-2.3.1/src/util/com/com_include.h
r105107 r107544 8 8 9 9 #define WIN32_LEAN_AND_MEAN 10 #if defined(VBOX) && defined(_WIN32) 11 #include <iprt/win/windows.h> 12 #else 10 13 #include <windows.h> 14 #endif 11 15 #include <unknwn.h> 12 16 -
trunk/src/libs/dxvk-2.3.1/src/util/util_env.cpp
r105141 r107544 76 76 77 77 std::string getExePath() { 78 #ifdef VBOX79 std::array<char, PATH_MAX> exePath = {};80 if (!RTProcGetExecutablePath(exePath.data(), exePath.size()))81 return std::string("");82 return std::string(exePath.begin(), exePath.begin() + strlen(exePath.begin()));83 #else84 78 #if defined(_WIN32) 85 79 std::vector<WCHAR> exePath; … … 91 85 return str::fromws(exePath.data()); 92 86 #elif defined(__linux__) 87 #ifdef VBOX 88 std::array<char, PATH_MAX> exePath = {}; 89 if (!RTProcGetExecutablePath(exePath.data(), exePath.size())) 90 return std::string(""); 91 return std::string(exePath.begin(), exePath.begin() + strlen(exePath.begin())); 92 #else 93 93 std::array<char, PATH_MAX> exePath = {}; 94 94 … … 96 96 97 97 return std::string(exePath.begin(), exePath.begin() + count); 98 #endif /* VBOX */ 98 99 #endif 99 #endif /* VBOX */100 100 } 101 101 -
trunk/src/libs/dxvk-2.3.1/src/util/util_gdi.h
r105107 r107544 1 1 #pragma once 2 2 3 #if defined(VBOX) && defined(_WIN32) 4 #include <iprt/win/d3d9.h> 5 #else 3 6 #include <d3d9.h> 7 #endif 4 8 5 9 namespace dxvk { -
trunk/src/libs/dxvk-2.3.1/src/util/util_win32_compat.h
r105110 r107544 1 1 #pragma once 2 2 3 #if defined(__linux__) || defined(VBOX)3 #if defined(__linux__) || (defined(VBOX) && !defined(_WIN32)) 4 4 5 5 #include <windows.h> -
trunk/src/libs/dxvk-2.3.1/src/wsi/headless/wsi_monitor_headless.cpp
r105107 r107544 3 3 #include <windows.h> 4 4 5 #if defined(VBOX) && defined(_WIN32) 6 #include "native/wsi/native_wsi.h" 7 #else 5 8 #include "wsi/native_wsi.h" 9 #endif 6 10 #include "wsi_platform_headless.h" 7 11 -
trunk/src/libs/dxvk-2.3.1/src/wsi/headless/wsi_window_headless.cpp
r105107 r107544 2 2 3 3 #include <windows.h> 4 #if defined(VBOX) && defined(_WIN32) 5 #include "native/wsi/native_wsi.h" 6 #else 4 7 #include "wsi/native_wsi.h" 8 #endif 5 9 #include "wsi_platform_headless.h" 6 10
Note:
See TracChangeset
for help on using the changeset viewer.