From 9b4185ffdf905f9e3234372fe6dc5131e90f6c93 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Thu, 30 Oct 2014 15:04:33 +0100 Subject: [PATCH] ShaderGen: Make use of padding to store the stereo flag. --- Source/Core/VideoCommon/PixelShaderGen.h | 4 +--- Source/Core/VideoCommon/VertexShaderGen.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.h b/Source/Core/VideoCommon/PixelShaderGen.h index 26ec28d33f..784523087a 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.h +++ b/Source/Core/VideoCommon/PixelShaderGen.h @@ -44,7 +44,7 @@ struct pixel_shader_uid_data u32 dstAlphaMode : 2; u32 Pretest : 2; u32 nIndirectStagesUsed : 4; - u32 pad0 : 1; + u32 stereo : 1; u32 genMode_numtexgens : 4; u32 genMode_numtevstages : 4; @@ -119,8 +119,6 @@ struct pixel_shader_uid_data // TODO: I think we're fine without an enablePixelLighting field, should probably double check, though.. LightingUidData lighting; - - u32 stereo : 1; }; #pragma pack() diff --git a/Source/Core/VideoCommon/VertexShaderGen.h b/Source/Core/VideoCommon/VertexShaderGen.h index 06cab3ff91..b5e9e33f29 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.h +++ b/Source/Core/VideoCommon/VertexShaderGen.h @@ -38,7 +38,7 @@ struct vertex_shader_uid_data u32 numColorChans : 2; u32 dualTexTrans_enabled : 1; u32 pixel_lighting : 1; - u32 pad0 : 1; + u32 stereo : 1; u32 texMtxInfo_n_projection : 16; // Stored separately to guarantee that the texMtxInfo struct is 8 bits wide struct { @@ -56,8 +56,6 @@ struct vertex_shader_uid_data } postMtxInfo[8]; LightingUidData lighting; - - u32 stereo : 1; }; #pragma pack()