summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-03-29 11:05:44 +0100
committerPierre Bourdon <delroth@gmail.com>2014-03-29 11:05:44 +0100
commit664c8d30a055f4762a2a60be77c1c8eaec1a5d85 (patch)
treead290b1f173ae3b3c70f4841efd8c46091409579 /Source/Core/VideoCommon
parent92fc7c64d6980c8000f8b2a8c794c7968cb74da1 (diff)
Remove all trailing whitespaces from our codebase.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/DriverDetails.cpp2
-rw-r--r--Source/Core/VideoCommon/DriverDetails.h8
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp10
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp4
-rw-r--r--Source/Core/VideoCommon/VertexShaderManager.cpp8
5 files changed, 16 insertions, 16 deletions
diff --git a/Source/Core/VideoCommon/DriverDetails.cpp b/Source/Core/VideoCommon/DriverDetails.cpp
index 6880b1ce60..a0b69b829a 100644
--- a/Source/Core/VideoCommon/DriverDetails.cpp
+++ b/Source/Core/VideoCommon/DriverDetails.cpp
@@ -28,7 +28,7 @@ namespace DriverDetails
const u32 m_os = OS_ALL | OS_ANDROID;
#elif __APPLE__
const u32 m_os = OS_ALL | OS_OSX;
-#elif __linux__
+#elif __linux__
const u32 m_os = OS_ALL | OS_LINUX;
#endif
diff --git a/Source/Core/VideoCommon/DriverDetails.h b/Source/Core/VideoCommon/DriverDetails.h
index c9bcb66130..458973880a 100644
--- a/Source/Core/VideoCommon/DriverDetails.h
+++ b/Source/Core/VideoCommon/DriverDetails.h
@@ -7,7 +7,7 @@
namespace DriverDetails
{
// Enum of supported operating systems
- enum OS
+ enum OS
{
OS_ALL = (1 << 0),
OS_WINDOWS = (1 << 1),
@@ -132,13 +132,13 @@ namespace DriverDetails
// The driver stalls in each instance no matter what you do
// Apparently Mali and Adreno share code in this regard since it was wrote by the same person.
BUG_BROKENBUFFERSTREAM,
- // Bug: GLSL ES 3.0 textureSize causes abort
+ // Bug: GLSL ES 3.0 textureSize causes abort
// Affected devices: Adreno a3xx
// Started Version: -1 (Noticed in v53)
// Ended Version: -1
// If a shader includes a textureSize function call then the shader compiler will call abort()
BUG_BROKENTEXTURESIZE,
- // Bug: ARB_buffer_storage doesn't work with ARRAY_BUFFER type streams
+ // Bug: ARB_buffer_storage doesn't work with ARRAY_BUFFER type streams
// Affected devices: Geforce 4xx+
// Started Version: -1
// Ended Version: 332.21
@@ -165,7 +165,7 @@ namespace DriverDetails
// TODO: some windows AMD driver/gpu combination seems also affected
// but as they all support pinned memory, it doesn't matter
BUG_BROKENUNSYNCMAPPING,
- // Bug: Adreno now rotates the framebuffer on blit a full 180 degrees
+ // Bug: Adreno now rotates the framebuffer on blit a full 180 degrees
// Affected devices: Adreno
// Started Version: v53 (dev drivers)
// Ended Version: -1
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 04b25cb4fc..6742ac21c5 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -752,7 +752,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
colmat[0] = colmat[4] = colmat[8] = colmat[15] = 1.0f;
ColorMask[0] = ColorMask[3] = 15.0f;
ColorMask[4] = ColorMask[7] = 1.0f / 15.0f;
-
+
cbufid = 16;
if (!efbHasAlpha) {
ColorMask[3] = 0.0f;
@@ -762,7 +762,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
break;
case 3: // RA8
colmat[0] = colmat[4] = colmat[8] = colmat[15] = 1.0f;
-
+
cbufid = 18;
if (!efbHasAlpha) {
ColorMask[3] = 0.0f;
@@ -773,7 +773,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
case 7: // A8
colmat[3] = colmat[7] = colmat[11] = colmat[15] = 1.0f;
-
+
cbufid = 20;
if (!efbHasAlpha) {
ColorMask[3] = 0.0f;
@@ -820,7 +820,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
ColorMask[4] = ColorMask[5] = ColorMask[6] = 1.0f / 31.0f;
ColorMask[3] = 7.0f;
ColorMask[7] = 1.0f / 7.0f;
-
+
cbufid = 27;
if (!efbHasAlpha) {
ColorMask[3] = 0.0f;
@@ -830,7 +830,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
break;
case 6: // RGBA8
colmat[0] = colmat[5] = colmat[10] = colmat[15] = 1.0f;
-
+
cbufid = 29;
if (!efbHasAlpha) {
ColorMask[3] = 0.0f;
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp
index f751bd0896..db6ab4dbf5 100644
--- a/Source/Core/VideoCommon/VertexLoader.cpp
+++ b/Source/Core/VideoCommon/VertexLoader.cpp
@@ -597,8 +597,8 @@ void VertexLoader::CompileVertexTranslator()
if (pFunc == nullptr)
{
Host_SysMessage(
- StringFromFormat("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!",
- m_VtxDesc.Normal, m_VtxAttr.NormalFormat,
+ StringFromFormat("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!",
+ m_VtxDesc.Normal, m_VtxAttr.NormalFormat,
m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3).c_str());
}
WriteCall(pFunc);
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp
index 337807bb06..f0e4be9040 100644
--- a/Source/Core/VideoCommon/VertexShaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexShaderManager.cpp
@@ -135,7 +135,7 @@ static void ViewportCorrectionMatrix(Matrix44& result)
float intendedY = xfregs.viewport.yOrig + xfregs.viewport.ht - scissorYOff;
float intendedWd = 2.0f * xfregs.viewport.wd;
float intendedHt = -2.0f * xfregs.viewport.ht;
-
+
if (intendedWd < 0.f)
{
intendedX += intendedWd;
@@ -152,11 +152,11 @@ static void ViewportCorrectionMatrix(Matrix44& result)
float Y = (intendedY >= 0.f) ? intendedY : 0.f;
float Wd = (X + intendedWd <= EFB_WIDTH) ? intendedWd : (EFB_WIDTH - X);
float Ht = (Y + intendedHt <= EFB_HEIGHT) ? intendedHt : (EFB_HEIGHT - Y);
-
+
Matrix44::LoadIdentity(result);
if (Wd == 0 || Ht == 0)
return;
-
+
result.data[4*0+0] = intendedWd / Wd;
result.data[4*0+3] = (intendedWd - 2.f * (X - intendedX)) / Wd - 1.f;
result.data[4*1+1] = intendedHt / Ht;
@@ -363,7 +363,7 @@ void VertexShaderManager::SetConstants()
dirty = true;
// This is so implementation-dependent that we can't have it here.
g_renderer->SetViewport();
-
+
// Update projection if the viewport isn't 1:1 useable
if (!g_ActiveConfig.backend_info.bSupportsOversizedViewports)
{