From: Tim Rowley Date: Mon, 25 Apr 2016 20:19:58 +0000 (-0600) Subject: swr: [rasterizer] Whitespace cleanup and misc changes X-Git-Tag: upstream/17.1.0~10227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eb211c4a4c31e5e46840435df90554fbc864adc;p=platform%2Fupstream%2Fmesa.git swr: [rasterizer] Whitespace cleanup and misc changes Reviewed-by: Bruce Cherniak --- 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 +#include template struct ShaderVariant {