From 46cbee158539f6682d9535e889d4ee1e8352b5f6 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Thu, 6 Feb 2025 23:18:02 -0300 Subject: [PATCH] RemapSwizzle formatting (#2368) This doesn't change anything, it just reduces duplicate information. --- src/video_core/amdgpu/types.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/video_core/amdgpu/types.h b/src/video_core/amdgpu/types.h index cd642508c..ee2dda494 100644 --- a/src/video_core/amdgpu/types.h +++ b/src/video_core/amdgpu/types.h @@ -298,6 +298,7 @@ inline NumberFormat RemapNumberFormat(const NumberFormat format, const DataForma inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizzle) { switch (format) { + case DataFormat::Format1_5_5_5: case DataFormat::Format11_11_10: { CompMapping result; result.r = swizzle.b; @@ -314,14 +315,6 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz result.a = swizzle.r; return result; } - case DataFormat::Format1_5_5_5: { - CompMapping result; - result.r = swizzle.b; - result.g = swizzle.g; - result.b = swizzle.r; - result.a = swizzle.a; - return result; - } case DataFormat::Format4_4_4_4: { // Remap to a more supported component order. CompMapping result;