Explorar o código

Integrate internal changes

- link dump methods when compiled with _DEBUG or DBG
- d3d12warp to d3d10warp in hcttest-samples.py
Tex Riddell %!s(int64=8) %!d(string=hai) anos
pai
achega
a96eea8581
Modificáronse 2 ficheiros con 3 adicións e 6 borrados
  1. 1 1
      lib/HLSL/DxilModule.cpp
  2. 2 5
      utils/hct/hcttest-samples.py

+ 1 - 1
lib/HLSL/DxilModule.cpp

@@ -66,7 +66,7 @@ DxilModule::DxilModule(Module *pModule)
 
 
   m_NumThreads[0] = m_NumThreads[1] = m_NumThreads[2] = 0;
   m_NumThreads[0] = m_NumThreads[1] = m_NumThreads[2] = 0;
 
 
-#ifdef _DEBUG
+#if defined(_DEBUG) || defined(DBG)
   // Pin LLVM dump methods.
   // Pin LLVM dump methods.
   void (__thiscall Module::*pfnModuleDump)() const = &Module::dump;
   void (__thiscall Module::*pfnModuleDump)() const = &Module::dump;
   void (__thiscall Type::*pfnTypeDump)() const = &Type::dump;
   void (__thiscall Type::*pfnTypeDump)() const = &Type::dump;

+ 2 - 5
utils/hct/hcttest-samples.py

@@ -130,11 +130,8 @@ def ActionCopySDKLayers(args, name, dxil):
         ], args.symbols)
         ], args.symbols)
 def ActionCopyWarp12(args, name, dxil):
 def ActionCopyWarp12(args, name, dxil):
     CopyBins(args, name, dxil, [
     CopyBins(args, name, dxil, [
-            'd3d12warp.dll',
+            'd3d10warp.dll',
         ], args.symbols)
         ], args.symbols)
-def MakeD3D12WarpCopy(bin_path):
-    # Copy d3d10warp.dll to d3d12warp.dll
-    shutil.copy2(os.path.join(bin_path, 'd3d10warp.dll'), os.path.join(bin_path, 'd3d12warp.dll'))
 
 
 def PathSplitAll(p):
 def PathSplitAll(p):
     s = filter(None, os.path.split(p))
     s = filter(None, os.path.split(p))
@@ -161,7 +158,7 @@ def ListRuntimeCompilePaths(args):
         'D3D11_3SDKLayers.dll',
         'D3D11_3SDKLayers.dll',
         'D3D12SDKLayers.dll',
         'D3D12SDKLayers.dll',
         'DXGIDebug.dll',
         'DXGIDebug.dll',
-        'd3d12warp.dll',
+        'd3d10warp.dll',
     ]]
     ]]
 
 
 def CheckEnvironment(args):
 def CheckEnvironment(args):