swr: [rasterizer] Whitespace cleanup and misc changes
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 25 Apr 2016 20:19:58 +0000 (14:19 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 5 May 2016 19:48:55 +0000 (14:48 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/os.h
src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h
src/gallium/drivers/swr/rasterizer/jitter/jit_api.h
src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template
src/gallium/drivers/swr/swr_state.h

index 180a056..7bfc66f 100644 (file)
@@ -167,6 +167,7 @@ unsigned char _bittest(const LONG *a, LONG b)
 }
 
 #define GetCurrentProcessId getpid
+#define GetCurrentThreadId gettid
 
 #define CreateDirectory(name, pSecurity) mkdir(name, 0777)
 
index 057eb92..af317cc 100644 (file)
@@ -30,7 +30,6 @@
 #pragma once
 
 #include "common/formats.h"
-#include "core/context.h"
 #include "core/state.h"
 
 struct RENDER_TARGET_BLEND_COMPILE_STATE
index b668eb4..08261e7 100644 (file)
@@ -63,7 +63,6 @@ struct JIT_COMPILE_INPUT
     bool enableJitSampler;
 };
 
-
 //////////////////////////////////////////////////////////////////////////
 /// @brief Create JIT context.
 HANDLE JITCALL JitCreateContext(uint32_t targetSimdWidth, const char* arch);
index 9b34592..8dbfafd 100644 (file)
@@ -116,7 +116,6 @@ extern GlobalKnobs g_GlobalKnobs;
 #define KNOB_${knob[0]}${space_knob(knob[0])} GET_KNOB(${knob[0]})
 % endfor
 
-
 % else:
 % for inc in includes:
 #include <${inc}>
@@ -135,7 +134,6 @@ GlobalKnobs::GlobalKnobs()
     % for knob in knobs:
     InitKnob(${knob[0]});
     % endfor
-
 }
 
 //========================================================
@@ -164,5 +162,4 @@ std::string GlobalKnobs::ToString(const char* optPerLinePrefix)
     return str.str();
 }
 
-
 % endif
index fb0319c..82ee20f 100644 (file)
@@ -35,6 +35,7 @@
 #include "swr_tex_sample.h"
 #include "swr_shader.h"
 #include <unordered_map>
+#include <memory>
 
 template <typename T>
 struct ShaderVariant {