From b624a9520546410445c1320fac163759c9be6750 Mon Sep 17 00:00:00 2001 From: wwylele Date: Wed, 19 Apr 2017 23:48:10 +0300 Subject: rasterizer: implement combiner operation 7 (Dot3_RGBA) --- src/video_core/swrasterizer/texturing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/video_core/swrasterizer/texturing.cpp') diff --git a/src/video_core/swrasterizer/texturing.cpp b/src/video_core/swrasterizer/texturing.cpp index eb18e4ba4..aeb6aeb8c 100644 --- a/src/video_core/swrasterizer/texturing.cpp +++ b/src/video_core/swrasterizer/texturing.cpp @@ -169,7 +169,8 @@ Math::Vec3 ColorCombine(TevStageConfig::Operation op, const Math::Vec3 i result = (result * input[2].Cast()) / 255; return result.Cast(); } - case Operation::Dot3_RGB: { + case Operation::Dot3_RGB: + case Operation::Dot3_RGBA: { // Not fully accurate. Worst case scenario seems to yield a +/-3 error. Some HW results // indicate that the per-component computation can't have a higher precision than 1/256, // while dot3_rgb((0x80,g0,b0), (0x7F,g1,b1)) and dot3_rgb((0x80,g0,b0), (0x80,g1,b1)) give -- cgit v1.2.3