From 1eb211c4a4c31e5e46840435df90554fbc864adc Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Mon, 25 Apr 2016 14:19:58 -0600 Subject: swr: [rasterizer] Whitespace cleanup and misc changes Reviewed-by: Bruce Cherniak --- 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(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h index 180a0560822..7bfc66fde38 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 057eb92b67e..af317cc5fe3 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 b668eb47927..08261e74ed7 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 9b34592aaad..8dbfafde2d9 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 fb0319cc699..82ee20f73c1 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 { -- cgit v1.2.3