Skip to content

Commit

Permalink
RemapSwizzle formatting (#2368)
Browse files Browse the repository at this point in the history
This doesn't change anything, it just reduces duplicate information.
  • Loading branch information
DanielSvoboda authored Feb 7, 2025
1 parent 78ea536 commit 46cbee1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/video_core/amdgpu/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 46cbee1

Please sign in to comment.