Skip to content

Commit

Permalink
hotfix: 4444 swizzle order
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus committed Feb 7, 2025
1 parent 1a00b1a commit 78ea536
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video_core/amdgpu/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz
case DataFormat::Format4_4_4_4: {
// Remap to a more supported component order.
CompMapping result;
result.r = swizzle.a;
result.g = swizzle.r;
result.b = swizzle.g;
result.a = swizzle.b;
result.r = swizzle.g;
result.g = swizzle.b;
result.b = swizzle.a;
result.a = swizzle.r;
return result;
}
default:
Expand Down

0 comments on commit 78ea536

Please sign in to comment.