dolphin/Source/Core/VideoCommon
Pokechu22 0327e6acb4 Use the same logic for lerp bias for color and alpha
It doesn't make sense for alpha to add the bias ONLY when dividing by 2, while color doesn't apply the bias for divide by 2 only; hardware testing indicates that alpha should have the bias.

This fixes the menus in Mario Kart Wii (https://bugs.dolphin-emu.org/issues/11909) but reintroduces the white rectangle in Fortune Street.

This reverts commit 5aaa5141ed (and several other matching changes elsewhere).
2022-02-08 15:15:15 -08:00
..
AbstractFramebuffer.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AbstractFramebuffer.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AbstractPipeline.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AbstractShader.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AbstractStagingTexture.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
AbstractStagingTexture.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AbstractTexture.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
AbstractTexture.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AsyncRequests.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
AsyncRequests.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AsyncShaderCompiler.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
AsyncShaderCompiler.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BoundingBox.cpp VideoCommon: Add missing algorithm include for std::none_of 2021-11-02 13:50:21 +01:00
BoundingBox.h VideoCommon: Abstract bounding box 2021-10-04 15:51:24 -04:00
BPFunctions.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BPFunctions.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BPMemory.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BPMemory.h Fix non-constexpr format strings 2022-01-13 11:11:08 -08:00
BPStructs.cpp Refactor OpcodeDecoding and FIFO analyzer to use callbacks 2021-12-18 15:21:36 -08:00
BPStructs.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
CMakeLists.txt Eliminate SamplerCommon 2021-11-17 20:04:34 -08:00
CommandProcessor.cpp VideoCommon: Move logging/seen check for unknown opcodes into CommandProcessor 2022-01-22 22:04:15 -08:00
CommandProcessor.h Refactor OpcodeDecoding and FIFO analyzer to use callbacks 2021-12-18 15:21:36 -08:00
ConstantManager.h ConstantManager: Add logic ops to PixelShaderConstants 2021-11-24 17:52:26 -05:00
CPMemory.cpp VideoCommon: Move VertexLoaderManager logic out of CPState 2021-12-18 15:21:48 -08:00
CPMemory.h Fix ambiguous uses of format_to 2022-01-13 11:11:08 -08:00
DataReader.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
DriverDetails.cpp DriverDetails: Disable primitive restart on Adreno 2022-01-28 20:25:18 +01:00
DriverDetails.h VideoCommon: assume the majority of os/drivers support parallel compiling of shaders, we can create bugs if there are issues. Android is assumed buggy 2022-01-04 20:40:07 -06:00
Fifo.cpp Merge pull request #10356 from AdmiralCurtiss/config-port-core-4 2022-01-11 16:08:19 -05:00
Fifo.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FPSCounter.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
FPSCounter.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FramebufferManager.cpp VideoCommon: Add names for textures and shaders 2022-01-01 11:38:56 -08:00
FramebufferManager.h Make all fmt::formatter constructors constexpr 2022-01-13 11:11:08 -08:00
FramebufferShaderGen.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FramebufferShaderGen.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FrameDump.cpp VideoCommon/FrameDump: Build fix for libavformat major version 59 and newer. av_guess_format now returns a pointer to const. 2022-01-30 13:16:51 -06:00
FrameDump.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
FreeLookCamera.cpp VideoCommon: update Free Look camera's 'FieldOfView' function to 'FieldOfViewMultiplier' to better reflect usage 2021-10-08 18:17:20 -05:00
FreeLookCamera.h VideoCommon: update Free Look camera's 'FieldOfView' function to 'FieldOfViewMultiplier' to better reflect usage 2021-10-08 18:17:20 -05:00
GeometryShaderGen.cpp GeometryShaderGen: Write the layer for every vertex 2022-01-22 12:16:48 -08:00
GeometryShaderGen.h Fix ambiguous uses of format_to 2022-01-13 11:11:08 -08:00
GeometryShaderManager.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
GeometryShaderManager.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GXPipelineTypes.h PixelShaderGen: Add logic ops to pixel_shader_uid_data 2021-12-06 22:36:34 -05:00
HiresTextures_DDSLoader.cpp IOFile: Make origin parameter to Seek() an enum class. 2022-01-29 06:49:21 +01:00
HiresTextures.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HiresTextures.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
IndexGenerator.cpp Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class 2021-12-18 12:51:56 -08:00
IndexGenerator.h Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class 2021-12-18 12:51:56 -08:00
LightingShaderGen.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
LightingShaderGen.h LightingShaderGen: Make s_lighting_struct not inline 2021-12-22 15:17:52 -08:00
LookUpTables.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
NativeVertexFormat.h Eliminate VarType for ComponentFormat 2021-12-18 15:21:48 -08:00
NetPlayChatUI.cpp Externals: Update imgui to 1.85 2021-10-26 15:07:57 -07:00
NetPlayChatUI.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
NetPlayGolfUI.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
NetPlayGolfUI.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
OnScreenDisplay.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
OnScreenDisplay.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
OpcodeDecoding.cpp VideoCommon: Move logging/seen check for unknown opcodes into CommandProcessor 2022-01-22 22:04:15 -08:00
OpcodeDecoding.h VideoCommon: Move logging/seen check for unknown opcodes into CommandProcessor 2022-01-22 22:04:15 -08:00
PerfQueryBase.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
PerfQueryBase.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
PixelEngine.cpp Config: Port dual core setting to new config system. 2022-01-09 21:29:11 +01:00
PixelEngine.h Delay singlecore gpu interrupts 2021-11-25 11:11:01 +13:00
PixelShaderGen.cpp Use the same logic for lerp bias for color and alpha 2022-02-08 15:15:15 -08:00
PixelShaderGen.h PixelShaderGen: Add logic ops to pixel_shader_uid_data 2021-12-06 22:36:34 -05:00
PixelShaderManager.cpp ConstantManager: Add logic ops to PixelShaderConstants 2021-11-24 17:52:26 -05:00
PixelShaderManager.h VideoCommon: Expose SamplerState to shaders 2021-11-17 20:04:34 -08:00
PostProcessing.cpp VideoCommon: Add names for textures and shaders 2022-01-01 11:38:56 -08:00
PostProcessing.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
RenderBase.cpp Merge pull request #10332 from AdmiralCurtiss/config-port-general 2022-01-03 01:40:37 +01:00
RenderBase.h VideoCommon: Abstract bounding box 2021-10-04 15:51:24 -04:00
RenderState.cpp VideoCommon: Expose SamplerState to shaders 2021-11-17 20:04:34 -08:00
RenderState.h VideoCommon: Expose SamplerState to shaders 2021-11-17 20:04:34 -08:00
sfont.inc treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
ShaderCache.cpp IOFile: Make origin parameter to Seek() an enum class. 2022-01-29 06:49:21 +01:00
ShaderCache.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
ShaderGenCommon.cpp ShaderGenCommon: Add bit for LOD bias 2021-12-28 02:10:39 -05:00
ShaderGenCommon.h Use fmt::format_string 2022-01-13 11:11:08 -08:00
Statistics.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
Statistics.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureCacheBase.cpp Fix copy filter clamping when EFB VRAM copies are disabled 2022-01-29 12:23:32 -08:00
TextureCacheBase.h Fix ambiguous uses of format_to 2022-01-13 11:11:08 -08:00
TextureConfig.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
TextureConfig.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureConversionShader.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureConversionShader.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureConverterShaderGen.cpp TextureConverterShaderGen: Add missing newline 2022-01-25 13:22:56 -08:00
TextureConverterShaderGen.h Fix ambiguous uses of format_to 2022-01-13 11:11:08 -08:00
TextureDecoder_Common.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureDecoder_Generic.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
TextureDecoder_Util.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TextureDecoder_x64.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
TextureDecoder.h Make all fmt::formatter constructors constexpr 2022-01-13 11:11:08 -08:00
TextureInfo.cpp Eliminate SamplerCommon::AreBpTexMode0MipmapsEnabled 2021-11-17 20:04:34 -08:00
TextureInfo.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
TMEM.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
TMEM.h Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
UberShaderCommon.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
UberShaderCommon.h VideoCommon: Allow BitfieldExtract in specialized shaders 2021-11-17 20:04:33 -08:00
UberShaderPixel.cpp Use the same logic for lerp bias for color and alpha 2022-02-08 15:15:15 -08:00
UberShaderPixel.h UberShaderPixel: Rename ApiType to api_type 2021-08-01 15:09:20 -07:00
UberShaderVertex.cpp VideoCommon: Allow BitfieldExtract in specialized shaders 2021-11-17 20:04:33 -08:00
UberShaderVertex.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoader_Color.cpp VertexLoader_Color: Use Common::swap24 2021-12-18 15:21:48 -08:00
VertexLoader_Color.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoader_Normal.cpp Create and use CPArray enum class 2021-12-18 12:51:56 -08:00
VertexLoader_Normal.h VertexLoader: Convert to EnumMap 2021-12-18 12:51:55 -08:00
VertexLoader_Position.cpp Create and use CPArray enum class 2021-12-18 12:51:56 -08:00
VertexLoader_Position.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoader_TextCoord.cpp Create and use CPArray enum class 2021-12-18 12:51:56 -08:00
VertexLoader_TextCoord.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoader.cpp Common/Assert: Switch to fmt 2022-01-09 12:43:11 -08:00
VertexLoader.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoaderARM64.cpp Eliminate VarType for ComponentFormat 2021-12-18 15:21:48 -08:00
VertexLoaderARM64.h Create and use CPArray enum class 2021-12-18 12:51:56 -08:00
VertexLoaderBase.cpp Treewide: Remove unused inclusions of <cinttypes> 2022-01-09 12:43:11 -08:00
VertexLoaderBase.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
VertexLoaderManager.cpp Eliminate VarType for ComponentFormat 2021-12-18 15:21:48 -08:00
VertexLoaderManager.h VideoCommon: Move VertexLoaderManager logic out of CPState 2021-12-18 15:21:48 -08:00
VertexLoaderUtils.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexLoaderX64.cpp Eliminate VarType for ComponentFormat 2021-12-18 15:21:48 -08:00
VertexLoaderX64.h Create and use CPArray enum class 2021-12-18 12:51:56 -08:00
VertexManagerBase.cpp Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class 2021-12-18 12:51:56 -08:00
VertexManagerBase.h Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum class 2021-12-18 12:51:56 -08:00
VertexShaderGen.cpp VideoCommon: Fix color channel logic when per-pixel lighting is in use 2021-10-13 20:43:32 -07:00
VertexShaderGen.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VertexShaderManager.cpp VideoCommon: Move VertexLoaderManager logic out of CPState 2021-12-18 15:21:48 -08:00
VertexShaderManager.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VideoBackendBase.cpp VideoCommon: Move logging/seen check for unknown opcodes into CommandProcessor 2022-01-22 22:04:15 -08:00
VideoBackendBase.h VI: Implement post-scanout XFB output 2021-08-03 23:37:50 -04:00
VideoCommon.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VideoConfig.cpp Merge pull request #10346 from iwubcode/fixed_shader_precompile_parallelization 2022-01-06 16:28:15 -05:00
VideoConfig.h VideoConfig: Add flag for whether the system supports setting object names 2022-01-31 01:17:37 -05:00
VideoState.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
VideoState.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
XFMemory.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
XFMemory.h Fix ambiguous uses of format_to 2022-01-13 11:11:08 -08:00
XFStructs.cpp Fix non-constexpr format strings 2022-01-13 11:11:08 -08:00
XFStructs.h Refactor OpcodeDecoding and FIFO analyzer to use callbacks 2021-12-18 15:21:36 -08:00