[Mesa-dev] [PATCH 01/11] swr: [rasterizer] Whitespace cleanup and misc changes

Tim Rowley timothy.o.rowley at intel.com
Tue May 3 16:13:23 UTC 2016


---
 src/gallium/drivers/swr/rasterizer/common/os.h                      | 1 +
 src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h               | 1 -
 src/gallium/drivers/swr/rasterizer/jitter/jit_api.h                 | 1 -
 src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template | 3 ---
 src/gallium/drivers/swr/swr_state.h                                 | 1 +
 5 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 180a056..7bfc66f 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -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)
 
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h b/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h
index 057eb92..af317cc 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.h
@@ -30,7 +30,6 @@
 #pragma once
 
 #include "common/formats.h"
-#include "core/context.h"
 #include "core/state.h"
 
 struct RENDER_TARGET_BLEND_COMPILE_STATE
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h b/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h
index b668eb4..08261e7 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h
@@ -63,7 +63,6 @@ struct JIT_COMPILE_INPUT
     bool enableJitSampler;
 };
 
-
 //////////////////////////////////////////////////////////////////////////
 /// @brief Create JIT context.
 HANDLE JITCALL JitCreateContext(uint32_t targetSimdWidth, const char* arch);
diff --git a/src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template b/src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template
index 9b34592..8dbfafd 100644
--- a/src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template
+++ b/src/gallium/drivers/swr/rasterizer/scripts/templates/knobs.template
@@ -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
diff --git a/src/gallium/drivers/swr/swr_state.h b/src/gallium/drivers/swr/swr_state.h
index fb0319c..82ee20f 100644
--- a/src/gallium/drivers/swr/swr_state.h
+++ b/src/gallium/drivers/swr/swr_state.h
@@ -35,6 +35,7 @@
 #include "swr_tex_sample.h"
 #include "swr_shader.h"
 #include <unordered_map>
+#include <memory>
 
 template <typename T>
 struct ShaderVariant {
-- 
1.9.1



More information about the mesa-dev mailing list