mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Remove all trailing whitespaces from our codebase.
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user